Remove unused variable

`ignore_toggle` is never set to true.
This commit is contained in:
Robin Gareus 2021-01-29 01:07:36 +01:00
parent 42aef22e17
commit 9b4d330285
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
7 changed files with 0 additions and 25 deletions

View file

@ -99,8 +99,6 @@ AudioTimeAxisView::set_route (boost::shared_ptr<Route> rt)
subplugin_menu.set_name ("ArdourContextMenu"); subplugin_menu.set_name ("ArdourContextMenu");
ignore_toggle = false;
if (is_audio_track()) { if (is_audio_track()) {
controls_ebox.set_name ("AudioTrackControlsBaseUnselected"); controls_ebox.set_name ("AudioTrackControlsBaseUnselected");
time_axis_frame.set_name ("AudioTrackControlsBaseUnselected"); time_axis_frame.set_name ("AudioTrackControlsBaseUnselected");

View file

@ -367,7 +367,6 @@ FoldbackStrip::init ()
{ {
_entered_foldback_strip= 0; _entered_foldback_strip= 0;
ignore_comment_edit = false; ignore_comment_edit = false;
ignore_toggle = false;
comment_area = 0; comment_area = 0;
_previous_button.set_name ("mixer strip button"); _previous_button.set_name ("mixer strip button");
@ -844,10 +843,6 @@ FoldbackStrip::output_press (GdkEventButton *ev)
void void
FoldbackStrip::bundle_output_chosen (boost::shared_ptr<ARDOUR::Bundle> c) FoldbackStrip::bundle_output_chosen (boost::shared_ptr<ARDOUR::Bundle> c)
{ {
if (ignore_toggle) {
return;
}
_route->output()->connect_ports_to_bundle (c, true, true, this); _route->output()->connect_ports_to_bundle (c, true, true, this);
} }

View file

@ -181,8 +181,6 @@ MidiTimeAxisView::set_route (boost::shared_ptr<Route> rt)
_view->ContentsHeightChanged.connect ( _view->ContentsHeightChanged.connect (
sigc::mem_fun (*this, &MidiTimeAxisView::contents_height_changed)); sigc::mem_fun (*this, &MidiTimeAxisView::contents_height_changed));
ignore_toggle = false;
if (is_midi_track()) { if (is_midi_track()) {
_note_mode = midi_track()->note_mode(); _note_mode = midi_track()->note_mode();
} }

View file

@ -176,7 +176,6 @@ MixerStrip::init ()
group_menu = 0; group_menu = 0;
route_ops_menu = 0; route_ops_menu = 0;
ignore_comment_edit = false; ignore_comment_edit = false;
ignore_toggle = false;
comment_area = 0; comment_area = 0;
_width_owner = 0; _width_owner = 0;
@ -1124,20 +1123,12 @@ MixerStrip::input_press (GdkEventButton *ev)
void void
MixerStrip::bundle_input_chosen (boost::shared_ptr<ARDOUR::Bundle> c) MixerStrip::bundle_input_chosen (boost::shared_ptr<ARDOUR::Bundle> c)
{ {
if (ignore_toggle) {
return;
}
_route->input()->connect_ports_to_bundle (c, true, this); _route->input()->connect_ports_to_bundle (c, true, this);
} }
void void
MixerStrip::bundle_output_chosen (boost::shared_ptr<ARDOUR::Bundle> c) MixerStrip::bundle_output_chosen (boost::shared_ptr<ARDOUR::Bundle> c)
{ {
if (ignore_toggle) {
return;
}
_route->output()->connect_ports_to_bundle (c, true, true, this); _route->output()->connect_ports_to_bundle (c, true, true, this);
} }

View file

@ -178,8 +178,6 @@ RouteTimeAxisView::set_route (boost::shared_ptr<Route> rt)
timestretch_rect = 0; timestretch_rect = 0;
no_redraw = false; no_redraw = false;
ignore_toggle = false;
route_group_button.set_name ("route button"); route_group_button.set_name ("route button");
playlist_button.set_name ("route button"); playlist_button.set_name ("route button");
automation_button.set_name ("route button"); automation_button.set_name ("route button");

View file

@ -1750,10 +1750,6 @@ RouteUI::route_rename ()
void void
RouteUI::toggle_comment_editor () RouteUI::toggle_comment_editor ()
{ {
// if (ignore_toggle) {
// return;
// }
if (comment_window && comment_window->is_visible ()) { if (comment_window && comment_window->is_visible ()) {
comment_window->hide (); comment_window->hide ();
} else { } else {

View file

@ -122,7 +122,6 @@ public:
void select_midi_patch (); void select_midi_patch ();
bool ignore_toggle;
bool wait_for_release; bool wait_for_release;
bool multiple_mute_change; bool multiple_mute_change;
bool multiple_solo_change; bool multiple_solo_change;