mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
Remove Session::create_session_directory as it is no longer used
git-svn-id: svn://localhost/ardour2/trunk@1876 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
b8a14dff49
commit
355a988c3f
2 changed files with 0 additions and 48 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue