summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk2_ardour/ardour_ui.cc2
-rw-r--r--libs/ardour/utils.cc40
2 files changed, 0 insertions, 42 deletions
diff --git a/gtk2_ardour/ardour_ui.cc b/gtk2_ardour/ardour_ui.cc
index 6236bcd5dc..5e8d721970 100644
--- a/gtk2_ardour/ardour_ui.cc
+++ b/gtk2_ardour/ardour_ui.cc
@@ -123,8 +123,6 @@ sigc::signal<void> ARDOUR_UI::RapidScreenUpdate;
sigc::signal<void> ARDOUR_UI::SuperRapidScreenUpdate;
sigc::signal<void, framepos_t, bool, framepos_t> ARDOUR_UI::Clock;
-bool could_be_a_valid_path (const std::string& path);
-
ARDOUR_UI::ARDOUR_UI (int *argcp, char **argvp[])
: Gtkmm2ext::UI (PROGRAM_NAME, argcp, argvp)
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index 8ab20ecc62..7751ea20ca 100644
--- a/libs/ardour/utils.cc
+++ b/libs/ardour/utils.cc
@@ -120,46 +120,6 @@ bump_name_once (const std::string& name, char delimiter)
}
-bool
-could_be_a_valid_path (const string& path)
-{
- vector<string> posix_dirs;
- vector<string> dos_dirs;
- string testpath;
-
- split (path, posix_dirs, '/');
- split (path, dos_dirs, '\\');
-
- /* remove the last component of each */
-
- posix_dirs.erase (--posix_dirs.end());
- dos_dirs.erase (--dos_dirs.end());
-
- if (G_DIR_SEPARATOR == '/') {
- for (vector<string>::iterator x = posix_dirs.begin(); x != posix_dirs.end(); ++x) {
- testpath = Glib::build_filename (testpath, *x);
- cerr << "Testing " << testpath << endl;
- if (!Glib::file_test (testpath, Glib::FILE_TEST_IS_DIR|Glib::FILE_TEST_EXISTS)) {
- return false;
- }
- }
- }
-
- if (G_DIR_SEPARATOR == '\\') {
- testpath = "";
- for (vector<string>::iterator x = dos_dirs.begin(); x != dos_dirs.end(); ++x) {
- testpath = Glib::build_filename (testpath, *x);
- cerr << "Testing " << testpath << endl;
- if (!Glib::file_test (testpath, Glib::FILE_TEST_IS_DIR|Glib::FILE_TEST_EXISTS)) {
- return false;
- }
- }
- }
-
- return true;
-}
-
-
XMLNode *
find_named_node (const XMLNode& node, string name)
{