13
0

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:
Tim Mayberry 2012-06-23 05:08:46 +00:00
parent a1cb2e02df
commit d2637317a3
2 changed files with 0 additions and 18 deletions

View File

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

View File

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