Remove some unused code.

git-svn-id: svn://localhost/ardour2/branches/3.0@9476 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington 2011-05-04 15:03:35 +00:00
parent acd59c3439
commit d947f27faf
4 changed files with 0 additions and 77 deletions

View file

@ -2298,74 +2298,6 @@ ARDOUR_UI::fontconfig_dialog ()
#endif
}
void
ARDOUR_UI::parse_cmdline_path (const std::string& cmdline_path, std::string& session_name, std::string& session_path, bool& existing_session)
{
existing_session = false;
if (Glib::file_test (cmdline_path, Glib::FILE_TEST_IS_DIR)) {
session_path = cmdline_path;
existing_session = true;
} else if (Glib::file_test (cmdline_path, Glib::FILE_TEST_IS_REGULAR)) {
session_path = Glib::path_get_dirname (string (cmdline_path));
existing_session = true;
} else {
/* it doesn't exist, assume the best */
session_path = Glib::path_get_dirname (string (cmdline_path));
}
session_name = basename_nosuffix (string (cmdline_path));
}
int
ARDOUR_UI::load_cmdline_session (const std::string& session_name, const std::string& session_path, bool& existing_session)
{
/* when this is called, the backend audio system must be running */
/* the main idea here is to deal with the fact that a cmdline argument for the session
can be interpreted in different ways - it could be a directory or a file, and before
we load, we need to know both the session directory and the snapshot (statefile) within it
that we are supposed to use.
*/
if (session_name.length() == 0 || session_path.length() == 0) {
return false;
}
if (Glib::file_test (session_path, Glib::FILE_TEST_IS_DIR)) {
std::string predicted_session_file;
predicted_session_file = session_path;
predicted_session_file += '/';
predicted_session_file += session_name;
predicted_session_file += ARDOUR::statefile_suffix;
if (Glib::file_test (predicted_session_file, Glib::FILE_TEST_EXISTS)) {
existing_session = true;
}
} else if (Glib::file_test (session_path, Glib::FILE_TEST_EXISTS)) {
if (session_path.find (ARDOUR::statefile_suffix) == session_path.length() - 7) {
/* existing .ardour file */
existing_session = true;
}
} else {
existing_session = false;
}
/* lets just try to load it */
if (create_engine ()) {
backend_audio_error (false, _startup);
return -1;
}
return load_session (session_path, session_name);
}
bool
ARDOUR_UI::ask_about_loading_existing_session (const std::string& session_path)
{

View file

@ -140,8 +140,6 @@ class ARDOUR_UI : public Gtkmm2ext::UI, public ARDOUR::SessionHandlePtr
}
int get_session_parameters (bool quit_on_cancel, bool should_be_new = false, std::string load_template = "");
void parse_cmdline_path (const std::string& cmdline_path, std::string& session_name, std::string& session_path, bool& existing_session);
int load_cmdline_session (const std::string& session_name, const std::string& session_path, bool& existing_session);
int build_session_from_nsd (const std::string& session_name, const std::string& session_path);
bool ask_about_loading_existing_session (const std::string& session_path);

View file

@ -56,7 +56,6 @@ namespace ARDOUR {
extern PBD::PropertyChange bounds_change;
std::string get_ardour_revision ();
extern const char* const ardour_config_info;
void find_bindings_files (std::map<std::string,std::string>&);

View file

@ -355,12 +355,6 @@ ARDOUR::cleanup ()
return 0;
}
string
ARDOUR::get_ardour_revision ()
{
return "$Rev$";
}
void
ARDOUR::find_bindings_files (map<string,string>& files)
{