full (?) set of changes required to make MonitorSection an "always-there" component...
[ardour.git] / gtk2_ardour / ardour_ui2.cc
index 8080e66b65f1bd4b9f887df52ed80d39c05637f7..d0d51fbda6d5c6286779e44224011e66a819ff47 100644 (file)
@@ -818,24 +818,3 @@ ARDOUR_UI::update_title ()
 
 }
 
-void
-ARDOUR_UI::toggle_use_monitor_section ()
-{
-       if (!_session) {
-               return;
-       }
-
-       RefPtr<Action> act = ActionManager::get_action (X_("Monitor"), "UseMonitorSection");
-       assert (act);  RefPtr<ToggleAction> tact = Glib::RefPtr<ToggleAction>::cast_dynamic (act);
-       assert (tact);
-
-       bool yn = tact->get_active ();
-
-       if (yn) {
-               _session->add_monitor_section ();
-       } else {
-               _session->remove_monitor_section ();
-       }
-
-       Config->set_use_monitor_bus (yn);
-}