summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:22 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:22 +0000
commita459f96e38f569503e6d983808210d9d43a396ec (patch)
tree65b3b323d9be2bb5f8443c536650bf0bf2af56c5 /libs/pbd
parent6b1659a29bb9b5c4a31cb0aec371842df0585034 (diff)
Remove unused function PBD::sys::extension
git-svn-id: svn://localhost/ardour2/branches/3.0@12866 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/filesystem.cc16
-rw-r--r--libs/pbd/pbd/filesystem.h9
2 files changed, 0 insertions, 25 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc
index a154ed8b8e..0b2d03e456 100644
--- a/libs/pbd/filesystem.cc
+++ b/libs/pbd/filesystem.cc
@@ -164,22 +164,6 @@ basename (const path & p)
return base.substr (0, n);
}
-string
-extension (const path & p)
-{
- string base(p.leaf());
-
- string::size_type n = base.rfind ('.');
-
- if (n != string::npos)
- {
- return base.substr(n);
- }
-
- return string();
-
-}
-
} // namespace sys
} // namespace PBD
diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h
index 3df168ea84..d004895f60 100644
--- a/libs/pbd/pbd/filesystem.h
+++ b/libs/pbd/pbd/filesystem.h
@@ -175,15 +175,6 @@ void rename (const path& from_path, const path& to_path);
*/
std::string basename (const path& p);
-/**
- * @return If the filename contains a dot, return a substring of the
- * filename starting the rightmost dot to the end of the string, otherwise
- * an empty string.
- *
- * @param p a file path.
- */
-std::string extension (const path& p);
-
} // namespace sys
} // namespace PBD