diff options
author | Andreas Kling <kling@serenityos.org> | 2020-02-02 09:51:57 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-02-02 15:09:48 +0100 |
commit | b7e3810b5c3d7e52217e70eed61132d9f670648d (patch) | |
tree | 0cb7857d3c4da8289963fed5eb4300e6f5bffed0 /Applications | |
parent | d67da8c1015c923d799409fee9bf6dd2eafc82b8 (diff) | |
download | serenity-b7e3810b5c3d7e52217e70eed61132d9f670648d.zip |
Terminal: Remove an unused variable
Diffstat (limited to 'Applications')
-rw-r--r-- | Applications/Terminal/main.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Applications/Terminal/main.cpp b/Applications/Terminal/main.cpp index ba450e5c89..3aae9d3bc9 100644 --- a/Applications/Terminal/main.cpp +++ b/Applications/Terminal/main.cpp @@ -125,7 +125,7 @@ static void run_command(int ptm_fd, String command) } } -RefPtr<GWindow> create_settings_window(TerminalWidget& terminal, RefPtr<CConfigFile> config) +RefPtr<GWindow> create_settings_window(TerminalWidget& terminal) { auto window = GWindow::construct(); window->set_title("Terminal Settings"); @@ -159,7 +159,7 @@ RefPtr<GWindow> create_settings_window(TerminalWidget& terminal, RefPtr<CConfigF slider_container->set_preferred_size(100, 50); auto slider = GSlider::construct(Orientation::Horizontal, slider_container); - slider->on_value_changed = [&terminal, &config](int value) { + slider->on_value_changed = [&terminal](int value) { terminal.set_opacity(value); }; @@ -248,7 +248,7 @@ int main(int argc, char** argv) app_menu->add_action(GAction::create("Settings...", load_png("/res/icons/gear16.png"), [&](const GAction&) { if (!settings_window) { - settings_window = create_settings_window(*terminal, config); + settings_window = create_settings_window(*terminal); settings_window->on_close_request = [&] { settings_window = nullptr; return GWindow::CloseRequestDecision::Close; |