From 68289676c056b80459d4c892cefc6a50157643d5 Mon Sep 17 00:00:00 2001 From: Tim Mayberry Date: Sun, 17 Jun 2007 00:47:11 +0000 Subject: [PATCH] Remove unused method Session::get_template_list git-svn-id: svn://localhost/ardour2/trunk@2008 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/session.h | 1 - libs/ardour/session_state.cc | 32 -------------------------------- 2 files changed, 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&); 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 @@ -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 &template_names) -{ - vector *templates; - PathScanner scanner; - string path; - - path = template_path (); - - templates = scanner (path, template_filter, 0, false, true); - - vector::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) {