summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-06-17 00:47:11 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-06-17 00:47:11 +0000
commit68289676c056b80459d4c892cefc6a50157643d5 (patch)
treeb5e5aaf73533fe4d62b6b93f6338a351fc231e5a /libs
parent6da12f10090106cdabdead894730e3154e38fd0a (diff)
Remove unused method Session::get_template_list
git-svn-id: svn://localhost/ardour2/trunk@2008 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/ardour/session.h1
-rw-r--r--libs/ardour/session_state.cc32
2 files changed, 0 insertions, 33 deletions
diff --git a/libs/ardour/ardour/session.h b/libs/ardour/ardour/session.h
index a0c891cf97..16ee76a06b 100644
--- a/libs/ardour/ardour/session.h
+++ b/libs/ardour/ardour/session.h
@@ -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);
diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc
index 90d0752576..0dd4b0b684 100644
--- a/libs/ardour/session_state.cc
+++ b/libs/ardour/session_state.cc
@@ -2236,38 +2236,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)
{
return (path.length() > 5 && path.find (peakfile_suffix) != (path.length() - 5));