summaryrefslogtreecommitdiff
path: root/libs/pbd
diff options
context:
space:
mode:
authorTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:46 +0000
committerTim Mayberry <mojofunk@gmail.com>2012-06-23 05:08:46 +0000
commitd2637317a3bc1c757fe5cda6841a2a4bb0be14e1 (patch)
treea17265f92441a3a2bdad47e31de59f8c65f69d4e /libs/pbd
parenta1cb2e02dffa440fdbe94a3fa8752fe2bd35932e (diff)
Remove unused function PBD::sys::rename
git-svn-id: svn://localhost/ardour2/branches/3.0@12876 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r--libs/pbd/filesystem.cc13
-rw-r--r--libs/pbd/pbd/filesystem.h5
2 files changed, 0 insertions, 18 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc
index 438e7064ae..5cf7f4f002 100644
--- a/libs/pbd/filesystem.cc
+++ b/libs/pbd/filesystem.cc
@@ -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
diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h
index 274d1d39b3..7af2ab88ef 100644
--- a/libs/pbd/pbd/filesystem.h
+++ b/libs/pbd/pbd/filesystem.h
@@ -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