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