Remove unused function PBD::sys::extension

git-svn-id: svn://localhost/ardour2/branches/3.0@12866 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Tim Mayberry
2012-06-23 05:08:22 +00:00
parent 6b1659a29b
commit a459f96e38
2 changed files with 0 additions and 25 deletions

View File

@@ -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

View File

@@ -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