Remove unused function PBD::sys::rename
git-svn-id: svn://localhost/ardour2/branches/3.0@12876 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
a1cb2e02df
commit
d2637317a3
@ -126,19 +126,6 @@ create_directories(const path & p)
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
void
|
||||
rename (const path & from_path, const path & to_path)
|
||||
{
|
||||
// g_rename is a macro that evaluates to ::rename on
|
||||
// POSIX systems, without the global namespace qualifier
|
||||
// it would evaluate to a recursive call(if it compiled)
|
||||
if ( ::g_rename( from_path.to_string().c_str(),
|
||||
to_path.to_string().c_str() ) == -1 )
|
||||
{
|
||||
throw filesystem_error(g_strerror(errno), errno);
|
||||
}
|
||||
}
|
||||
|
||||
} // namespace sys
|
||||
|
||||
|
@ -148,11 +148,6 @@ bool create_directory(const path & p);
|
||||
*/
|
||||
bool create_directories(const path & p);
|
||||
|
||||
/**
|
||||
* Renames from_path to to_path as if by the glib function g_rename.
|
||||
*/
|
||||
void rename (const path& from_path, const path& to_path);
|
||||
|
||||
} // namespace sys
|
||||
|
||||
} // namespace PBD
|
||||
|
Loading…
Reference in New Issue
Block a user