From 1315ee3dff1e4966ab28bd47e81b5f003cac6e40 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Fri, 18 May 2007 02:41:29 +0000 Subject: [PATCH] Remove unused variable and the accessor methods for it from ARDOUR_UI git-svn-id: svn://localhost/ardour2/trunk@1863 d708f5d6-7413-0410-9779-e7cbd77b26cf --- gtk2_ardour/ardour_ui.cc | 4 +--- gtk2_ardour/ardour_ui.h | 10 ---------- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc index a10e4b5225..c368bed5f3 100644 --- a/gtk2_ardour/ardour_ui.cc +++ b/gtk2_ardour/ardour_ui.cc @@ -186,7 +186,6 @@ ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[], string rcfile) open_session_selector = 0; have_configure_timeout = false; have_disk_speed_dialog_displayed = false; - _will_create_new_session_automatically = false; session_loaded = false; last_speed_displayed = -1.0f; keybindings_path = ARDOUR::find_config_file ("ardour.bindings"); @@ -2580,8 +2579,7 @@ ARDOUR_UI::cmdline_new_session (string path) } new_session (path); - - _will_create_new_session_automatically = false; /* done it */ + return FALSE; /* don't call it again */ } diff --git a/gtk2_ardour/ardour_ui.h b/gtk2_ardour/ardour_ui.h index 8e8753c87b..7f16ff7eec 100644 --- a/gtk2_ardour/ardour_ui.h +++ b/gtk2_ardour/ardour_ui.h @@ -119,14 +119,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI ARDOUR::Session* the_session() { return session; } - bool will_create_new_session_automatically() const { - return _will_create_new_session_automatically; - } - - void set_will_create_new_session_automatically (bool yn) { - _will_create_new_session_automatically = yn; - } - bool new_session(std::string path = string()); gint cmdline_new_session (string path); @@ -542,8 +534,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI gint session_menu (GdkEventButton *); - bool _will_create_new_session_automatically; - NewSessionDialog* new_session_dialog; void open_session ();