summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2007-06-27 12:11:56 +0000
committerTim Mayberry <mojofunk@gmail.com>2007-06-27 12:11:56 +0000
commitb3d2b45615c7bea0b359b4d03123a144b0d76173 (patch)
treec241bf6ad943e6c57740ec35e03ef6bfb792d3fc /libs
parent18139ac2f44e64232060d08c25292cf40b424079 (diff)
Remove unused and non-portable utility function
git-svn-id: svn://localhost/ardour2/trunk@2039 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/ardour/utils.h2
-rw-r--r--libs/ardour/utils.cc26
2 files changed, 0 insertions, 28 deletions
diff --git a/libs/ardour/ardour/utils.h b/libs/ardour/ardour/utils.h
index 20badf5ea1..da2480a6d5 100644
--- a/libs/ardour/ardour/utils.h
+++ b/libs/ardour/ardour/utils.h
@@ -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);
diff --git a/libs/ardour/utils.cc b/libs/ardour/utils.cc
index 51a0414d0c..527cdb850b 100644
--- a/libs/ardour/utils.cc
+++ b/libs/ardour/utils.cc
@@ -174,32 +174,6 @@ cmp_nocase (const string& s, const string& s2)
}
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)
{
int fd = open (path.c_str(), O_RDWR|O_CREAT, 0660);