From 528ad3416affba88adef19e7f8db71504772e057 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sat, 3 Oct 2015 14:38:34 +1000 Subject: [PATCH] Remove unused methods in ARDOUR_UI for starting/stopping engine --- gtk2_ardour/ardour_ui.cc | 35 ----------------------------------- gtk2_ardour/ardour_ui.h | 2 -- 2 files changed, 37 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index 7309f7378e..727e36ed14 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -4473,41 +4473,6 @@ audio may be played at the wrong sample rate.\n"), desired, PROGRAM_NAME, actual return 1; } -int -ARDOUR_UI::disconnect_from_engine () -{ - /* drop connection to AudioEngine::Halted so that we don't act - * as if the engine unexpectedly shut down - */ - - halt_connection.disconnect (); - - if (AudioEngine::instance()->stop ()) { - MessageDialog msg (*editor, _("Could not disconnect from Audio/MIDI engine")); - msg.run (); - return -1; - } else { - AudioEngine::instance()->Halted.connect_same_thread (halt_connection, boost::bind (&ARDOUR_UI::engine_halted, this, _1, false)); - } - - update_sample_rate (0); - return 0; -} - -int -ARDOUR_UI::reconnect_to_engine () -{ - if (AudioEngine::instance()->start ()) { - // TODO somehow make this the topmost window (above any dialogs currently visible) - MessageDialog msg(*audio_midi_setup.get(), AudioEngine::instance()->get_last_backend_error()); - msg.run(); - return -1; - } - - update_sample_rate (0); - return 0; -} - void ARDOUR_UI::use_config () { diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index ce6c74c8c1..1c00d9893f 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -312,8 +312,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr const std::string& announce_string() const { return _announce_string; } - int disconnect_from_engine (); - int reconnect_to_engine (); void hide_application (); protected: