From a985a3d1847558bc9bcd02490014a4b3b95c1cda Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Fri, 29 Jan 2021 01:09:41 +0100 Subject: [PATCH] Remove a variable that is never read --- gtk2_ardour/panner_ui.cc | 3 --- gtk2_ardour/panner_ui.h | 1 - 2 files changed, 4 deletions(-) diff --git a/gtk2_ardour/panner_ui.cc b/gtk2_ardour/panner_ui.cc index b9a4ec6c78..a28c1f4932 100644 --- a/gtk2_ardour/panner_ui.cc +++ b/gtk2_ardour/panner_ui.cc @@ -64,7 +64,6 @@ PannerUI::PannerUI (Session* s) { set_session (s); - ignore_toggle = false; pan_menu = 0; pan_astate_menu = 0; pan_astyle_menu = 0; @@ -547,9 +546,7 @@ PannerUI::pan_automation_state_changed () bool x = (pannable->automation_state() != ARDOUR::Off); if (pan_automation_state_button.get_active() != x) { - ignore_toggle = true; pan_automation_state_button.set_active (x); - ignore_toggle = false; } update_pan_sensitive (); diff --git a/gtk2_ardour/panner_ui.h b/gtk2_ardour/panner_ui.h index d02fc1262d..b5d53b5eef 100644 --- a/gtk2_ardour/panner_ui.h +++ b/gtk2_ardour/panner_ui.h @@ -89,7 +89,6 @@ private: PBD::ScopedConnectionList connections; PBD::ScopedConnectionList _pan_control_connections; - bool ignore_toggle; bool in_pan_update; int _current_nouts; int _current_nins;