gems: Drop unused variables from Window_list class

No code in this class uses this private member variable. This prompts
clang to produce a warning message about it. Fix it by dropping the
variable.

Issue #3985
This commit is contained in:
Piotr Tworek 2021-01-12 00:40:13 +01:00 committed by Norman Feske
parent 71abfb3b4f
commit fce5c249c2
2 changed files with 1 additions and 4 deletions

View File

@ -68,7 +68,7 @@ struct Window_layouter::Main : Operations,
Decorator_margins _decorator_margins { Xml_node("<floating/>") }; Decorator_margins _decorator_margins { Xml_node("<floating/>") };
Window_list _window_list { Window_list _window_list {
_env, _heap, *this, _screen_size, _focus_history, _decorator_margins }; _env, _heap, *this, _focus_history, _decorator_margins };
Assign_list _assign_list { _heap }; Assign_list _assign_list { _heap };

View File

@ -35,7 +35,6 @@ class Window_layouter::Window_list
Env &_env; Env &_env;
Allocator &_alloc; Allocator &_alloc;
Change_handler &_change_handler; Change_handler &_change_handler;
Area const &_screen_size;
Focus_history &_focus_history; Focus_history &_focus_history;
Decorator_margins const &_decorator_margins; Decorator_margins const &_decorator_margins;
@ -104,14 +103,12 @@ class Window_layouter::Window_list
Window_list(Env &env, Window_list(Env &env,
Allocator &alloc, Allocator &alloc,
Change_handler &change_handler, Change_handler &change_handler,
Area const &screen_size,
Focus_history &focus_history, Focus_history &focus_history,
Decorator_margins const &decorator_margins) Decorator_margins const &decorator_margins)
: :
_env(env), _env(env),
_alloc(alloc), _alloc(alloc),
_change_handler(change_handler), _change_handler(change_handler),
_screen_size(screen_size),
_focus_history(focus_history), _focus_history(focus_history),
_decorator_margins(decorator_margins) _decorator_margins(decorator_margins)
{ {