Remove unused and non-portable utility function
authorTim Mayberry <mojofunk@gmail.com>
Wed, 27 Jun 2007 12:11:56 +0000 (12:11 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Wed, 27 Jun 2007 12:11:56 +0000 (12:11 +0000)
git-svn-id: svn://localhost/ardour2/trunk@2039 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/utils.h
libs/ardour/utils.cc

index 20badf5ea1c9248bb18ca12cb2fe32ef0ad54dc1..da2480a6d51d61a1f603e40b1c5b717af5c3b786 100644 (file)
@@ -48,8 +48,6 @@ static inline float f_max(float x, float a) {
 
 int cmp_nocase (const std::string& s, const std::string& s2);
 
-int tokenize_fullpath (std::string fullpath, std::string& path, std::string& name);
-
 int touch_file(Glib::ustring path);
 
 Glib::ustring path_expand (Glib::ustring);
index 51a0414d0c9af6cc31b60dd561b88f33abc4e1a4..527cdb850bc60707072e8ba6a80f0349cd0d41ba 100644 (file)
@@ -173,32 +173,6 @@ cmp_nocase (const string& s, const string& s2)
        return (s2.size() == s.size()) ? 0 : (s.size() < s2.size()) ? -1 : 1;
 }
 
-int
-tokenize_fullpath (string fullpath, string& path, string& name)
-{
-       string::size_type m = fullpath.find_last_of("/");
-       
-       if (m == string::npos) {
-               path = fullpath;
-               name = fullpath;
-               return 1;
-       }
-
-       // does it look like just a directory?
-       if (m == fullpath.length()-1) {
-               return -1;
-       }
-       path = fullpath.substr(0, m+1);
-       
-       string::size_type n = fullpath.find(".ardour", m);
-       // no .ardour?
-       if (n == string::npos) {
-               return -1;
-       }
-       name = fullpath.substr(m+1, n - m - 1);
-       return 1;
-}
-
 int
 touch_file (ustring path)
 {