From 355a988c3f09ccde1c84480c21ef20b72fb032ca Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Fri, 18 May 2007 02:46:27 +0000 Subject: [PATCH] Remove Session::create_session_directory as it is no longer used git-svn-id: svn://localhost/ardour2/trunk@1876 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/session.h | 2 -- libs/ardour/session_state.cc | 46 ------------------------------------ 2 files changed, 48 deletions(-) diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h index 7310c0dc62..076cef2488 100644 --- a/libs/ardour/ardour/session.h +++ b/libs/ardour/ardour/session.h @@ -951,8 +951,6 @@ class Session : public PBD::StatefulDestructible void update_latency_compensation (bool, bool); private: - /// @return true in session directory was successfully created - bool create_session_directory (); void destroy (); void initialize_start_and_end_locations(nframes_t start, nframes_t end); diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index 798c7045d0..e58f2324e3 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -499,52 +499,6 @@ Session::create_session_file_from_template (const string& template_path) return true; } -bool -Session::create_session_directory () -{ - string dir; - - if (g_mkdir_with_parents (_path.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session dir \"%1\" (%2)"), _path, strerror (errno)) << endmsg; - return false; - } - - dir = peak_dir (); - - if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session peakfile dir \"%1\" (%2)"), dir, strerror (errno)) << endmsg; - return false; - } - - /* if this is is an existing session with an old "sounds" directory, just use it. see Session::sound_dir() for more details */ - - if (!Glib::file_test (old_sound_dir(), Glib::FILE_TEST_EXISTS|Glib::FILE_TEST_IS_DIR)) { - - dir = sound_dir (); - - if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session sounds dir \"%1\" (%2)"), dir, strerror (errno)) << endmsg; - return false; - } - } - - dir = dead_sound_dir (); - - if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session dead sounds dir \"%1\" (%2)"), dir, strerror (errno)) << endmsg; - return false; - } - - dir = export_dir (); - - if (g_mkdir_with_parents (dir.c_str(), 0755) < 0) { - error << string_compose(_("Session: cannot create session export dir \"%1\" (%2)"), dir, strerror (errno)) << endmsg; - return false; - } - - return true; -} - int Session::load_diskstreams (const XMLNode& node) {