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:
parent
a459f96e38
commit
f318d8640c
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user