summaryrefslogtreecommitdiff
path: root/libs/pbd3/basename.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/pbd3/basename.cc')
-rw-r--r--libs/pbd3/basename.cc20
1 files changed, 0 insertions, 20 deletions
diff --git a/libs/pbd3/basename.cc b/libs/pbd3/basename.cc
deleted file mode 100644
index a51e393b78..0000000000
--- a/libs/pbd3/basename.cc
+++ /dev/null
@@ -1,20 +0,0 @@
-#include <iostream>
-#include <string.h>
-#include <pbd/basename.h>
-
-
-// implement this using Glib::path_get_basename
-std::string
-PBD::basename_nosuffix (const std::string& str)
-{
- std::string::size_type slash = str.find_last_of ('/');
- std::string noslash;
-
- if (slash == std::string::npos) {
- noslash = str;
- } else {
- noslash = str.substr (slash+1);
- }
-
- return noslash.substr (0, noslash.find_last_of ('.'));
-}