diff options
author | Benny Baumann <BenBE@geshi.org> | 2021-08-21 17:58:23 +0200 |
---|---|---|
committer | Christian Göttsche <cgzones@googlemail.com> | 2021-08-22 15:21:52 +0200 |
commit | 7146059645dd87a4b46920223a0aa9881202f4e2 (patch) | |
tree | 5e64249092f5c87d300fea5df3f7e6a67cd51a16 | |
parent | cf45a5d02b09120fc2e8e9ebaaaa5bdd45a021e4 (diff) |
Removed unused field in ColorsPanel
-rw-r--r-- | CategoriesPanel.c | 2 | ||||
-rw-r--r-- | ColorsPanel.c | 3 | ||||
-rw-r--r-- | ColorsPanel.h | 3 |
3 files changed, 3 insertions, 5 deletions
diff --git a/CategoriesPanel.c b/CategoriesPanel.c index 9adc7be5..d415760c 100644 --- a/CategoriesPanel.c +++ b/CategoriesPanel.c @@ -50,7 +50,7 @@ static void CategoriesPanel_makeDisplayOptionsPage(CategoriesPanel* this) { } static void CategoriesPanel_makeColorsPage(CategoriesPanel* this) { - Panel* colors = (Panel*) ColorsPanel_new(this->settings, this->scr); + Panel* colors = (Panel*) ColorsPanel_new(this->settings); ScreenManager_add(this->scr, colors, -1); } diff --git a/ColorsPanel.c b/ColorsPanel.c index d9857308..e9c44b02 100644 --- a/ColorsPanel.c +++ b/ColorsPanel.c @@ -84,14 +84,13 @@ const PanelClass ColorsPanel_class = { .eventHandler = ColorsPanel_eventHandler }; -ColorsPanel* ColorsPanel_new(Settings* settings, ScreenManager* scr) { +ColorsPanel* ColorsPanel_new(Settings* settings) { ColorsPanel* this = AllocThis(ColorsPanel); Panel* super = (Panel*) this; FunctionBar* fuBar = FunctionBar_new(ColorsFunctions, NULL, NULL); Panel_init(super, 1, 1, 1, 1, Class(CheckItem), true, fuBar); this->settings = settings; - this->scr = scr; assert(ARRAYSIZE(ColorSchemeNames) == LAST_COLORSCHEME + 1); diff --git a/ColorsPanel.h b/ColorsPanel.h index 54bb8580..6a031e20 100644 --- a/ColorsPanel.h +++ b/ColorsPanel.h @@ -16,11 +16,10 @@ typedef struct ColorsPanel_ { Panel super; Settings* settings; - ScreenManager* scr; } ColorsPanel; extern const PanelClass ColorsPanel_class; -ColorsPanel* ColorsPanel_new(Settings* settings, ScreenManager* scr); +ColorsPanel* ColorsPanel_new(Settings* settings); #endif |