From 7146059645dd87a4b46920223a0aa9881202f4e2 Mon Sep 17 00:00:00 2001 From: Benny Baumann Date: Sat, 21 Aug 2021 17:58:23 +0200 Subject: Removed unused field in ColorsPanel --- CategoriesPanel.c | 2 +- ColorsPanel.c | 3 +-- 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 -- cgit v1.2.3