summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:24 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:24 +0000
commitf318d8640cd8ccdfbcecfaf0f26cdbf1c2898f19 (patch)
tree31cb9c928bf20d7cddf2e08a542c3a153da356cf
parenta459f96e38f569503e6d983808210d9d43a396ec (diff)
Remove unused function PBD::sys::basename
git-svn-id: svn://localhost/ardour2/branches/3.0@12867 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/pbd/filesystem.cc10
-rw-r--r--libs/pbd/pbd/filesystem.h10
2 files changed, 0 insertions, 20 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc
index 0b2d03e456..f706c150d9 100644
--- a/libs/pbd/filesystem.cc
+++ b/libs/pbd/filesystem.cc
@@ -154,16 +154,6 @@ rename (const path & from_path, const path & to_path)
}
}
-string
-basename (const path & p)
-{
- string base(p.leaf());
-
- string::size_type n = base.rfind ('.');
-
- return base.substr (0, n);
-}
-
} // namespace sys
} // namespace PBD
diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h
index d004895f60..9f5608bc4c 100644
--- a/libs/pbd/pbd/filesystem.h
+++ b/libs/pbd/pbd/filesystem.h
@@ -165,16 +165,6 @@ bool remove(const path & p);
*/
void rename (const path& from_path, const path& to_path);
-/**
- * @return The substring of the filename component of the path, starting
- * at the beginning of the filename up to but not including the last dot.
- *
- * boost::filesystem::path::basename differs from g_path_get_basename and
- * ::basename and most other forms of basename in that it removes the
- * extension from the filename if the filename has one.
- */
-std::string basename (const path& p);
-
} // namespace sys
} // namespace PBD