summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:49 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:49 +0000
commit7a6e86c9f9bef8db74b755db659794c4a859f36d (patch)
tree7689dbc537c32df5725042a5bf59d7d238280473
parentd2637317a3bc1c757fe5cda6841a2a4bb0be14e1 (diff)
Remove unused method PBD::sys::path::branch_path
git-svn-id: svn://localhost/ardour2/branches/3.0@12877 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/pbd/filesystem.cc18
-rw-r--r--libs/pbd/pbd/filesystem.h7
2 files changed, 0 insertions, 25 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc
index 5cf7f4f002..7dda59895b 100644
--- a/libs/pbd/filesystem.cc
+++ b/libs/pbd/filesystem.cc
@@ -69,24 +69,6 @@ path::leaf () const
return Glib::path_get_basename(m_path);
}
-path
-path::branch_path () const
-{
- string dir = Glib::path_get_dirname (m_path);
-
- /*
- * glib returns "." to signify that the path
- * has no directory components(branch path)
- * whereas boost::filesystem returns an empty
- * string
- */
- if(dir == ".")
- {
- return "";
- }
- return dir;
-}
-
bool
exists (const path & p)
{
diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h
index 7af2ab88ef..540efe3551 100644
--- a/libs/pbd/pbd/filesystem.h
+++ b/libs/pbd/pbd/filesystem.h
@@ -90,13 +90,6 @@ public:
*/
std::string leaf () const;
- /**
- * @returns the directory component of a path without any trailing
- * path separator or an empty string if the path has no directory
- * component(branch path).
- */
- path branch_path () const;
-
private:
std::string m_path;