13
0

Remove unused function PBD::sys::basename

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

View File

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

View File

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