Remove Session::create_session_directory as it is no longer used
authorTim Mayberry <mojofunk@gmail.com>
Fri, 18 May 2007 02:46:27 +0000 (02:46 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Fri, 18 May 2007 02:46:27 +0000 (02:46 +0000)
git-svn-id: svn://localhost/ardour2/trunk@1876 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/session.h
libs/ardour/session_state.cc

index 7310c0dc62172bc5b27e463cddd73c93195a276b..076cef24885dc41f382b6da3335863f018e85f58 100644 (file)
@@ -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);
index 798c7045d0b1124d83fc944fd93688ec698ddfb0..e58f2324e34f4a0eb96467916e2b53f318322f42 100644 (file)
@@ -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)
 {