Remove unused method Session::get_template_list
authorTim Mayberry <mojofunk@gmail.com>
Sun, 17 Jun 2007 00:47:11 +0000 (00:47 +0000)
committerTim Mayberry <mojofunk@gmail.com>
Sun, 17 Jun 2007 00:47:11 +0000 (00:47 +0000)
git-svn-id: svn://localhost/ardour2/trunk@2008 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/ardour/session.h
libs/ardour/session_state.cc

index a0c891cf9713ab9b4413b4d1a0a2ce388a5a2eca..16ee76a06b2b04b9ec24fbe90416d541746eaae4 100644 (file)
@@ -265,7 +265,6 @@ class Session : public PBD::StatefulDestructible
        static string control_protocol_path ();
        static string template_path ();
        static string template_dir ();
-       static void get_template_list (list<string>&);
        
        static string change_audio_path_by_name (string oldpath, string oldname, string newname, bool destructive);
        static string change_midi_path_by_name (string oldpath, string oldname, string newname, bool destructive);
index 90d075257602fba9dfdc31e31fdbac29edd70986..0dd4b0b684069105f5d810e71b22dc8a6fb4eaa1 100644 (file)
@@ -2235,38 +2235,6 @@ Session::global_record_enable_memento (void* src)
 }
 #endif
 
-static bool
-template_filter (const string &str, void *arg)
-{
-       return (str.length() > strlen(template_suffix) &&
-               str.find (template_suffix) == (str.length() - strlen (template_suffix)));
-}
-
-void
-Session::get_template_list (list<string> &template_names)
-{
-       vector<string *> *templates;
-       PathScanner scanner;
-       string path;
-
-       path = template_path ();
-
-       templates = scanner (path, template_filter, 0, false, true);
-       
-       vector<string*>::iterator i;
-       for (i = templates->begin(); i != templates->end(); ++i) {
-               string fullpath = *(*i);
-               int start, end;
-
-               start = fullpath.find_last_of ('/') + 1;
-               if ((end = fullpath.find_last_of ('.')) <0) {
-                       end = fullpath.length();
-               }
-               
-               template_names.push_back(fullpath.substr(start, (end-start)));
-       }
-}
-
 static bool
 accept_all_non_peak_files (const string& path, void *arg)
 {