mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-18 04:36:30 +01:00
Remove unused method PBD::sys::path::branch_path
git-svn-id: svn://localhost/ardour2/branches/3.0@12877 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
d2637317a3
commit
7a6e86c9f9
2 changed files with 0 additions and 25 deletions
|
|
@ -69,24 +69,6 @@ path::leaf () const
|
||||||
return Glib::path_get_basename(m_path);
|
return Glib::path_get_basename(m_path);
|
||||||
}
|
}
|
||||||
|
|
||||||
path
|
|
||||||
path::branch_path () const
|
|
||||||
{
|
|
||||||
string dir = Glib::path_get_dirname (m_path);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* glib returns "." to signify that the path
|
|
||||||
* has no directory components(branch path)
|
|
||||||
* whereas boost::filesystem returns an empty
|
|
||||||
* string
|
|
||||||
*/
|
|
||||||
if(dir == ".")
|
|
||||||
{
|
|
||||||
return "";
|
|
||||||
}
|
|
||||||
return dir;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
exists (const path & p)
|
exists (const path & p)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -90,13 +90,6 @@ public:
|
||||||
*/
|
*/
|
||||||
std::string leaf () const;
|
std::string leaf () const;
|
||||||
|
|
||||||
/**
|
|
||||||
* @returns the directory component of a path without any trailing
|
|
||||||
* path separator or an empty string if the path has no directory
|
|
||||||
* component(branch path).
|
|
||||||
*/
|
|
||||||
path branch_path () const;
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
||||||
std::string m_path;
|
std::string m_path;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue