From 06aa9c74355c2d90acfb11697100271ffbe5462d Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 31 May 2012 22:44:29 +0000 Subject: Remove unused method. git-svn-id: svn://localhost/ardour2/branches/3.0@12516 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/utils.cc | 40 ---------------------------------------- 1 file changed, 40 deletions(-) (limited to 'libs/ardour/utils.cc') 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 posix_dirs; - vector 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::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::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) { -- cgit v1.2.3