diff options
author | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:38 +0000 |
---|---|---|
committer | Tim Mayberry <mojofunk@gmail.com> | 2012-06-23 05:08:38 +0000 |
commit | 8c831bef10c4b7acbf7c753dd49a6de407b1eef0 (patch) | |
tree | 2b47e53c616e011769dee36cb27cc18befc295ab /libs/pbd | |
parent | dcc6d273903e468132027085bf32412d8d080230 (diff) |
Remove unused function PBD::sys::remove
git-svn-id: svn://localhost/ardour2/branches/3.0@12873 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/pbd')
-rw-r--r-- | libs/pbd/filesystem.cc | 14 | ||||
-rw-r--r-- | libs/pbd/pbd/filesystem.h | 12 |
2 files changed, 0 insertions, 26 deletions
diff --git a/libs/pbd/filesystem.cc b/libs/pbd/filesystem.cc index f706c150d9..438e7064ae 100644 --- a/libs/pbd/filesystem.cc +++ b/libs/pbd/filesystem.cc @@ -127,20 +127,6 @@ create_directories(const path & p) return true; } -bool -remove(const path & p) -{ - if(!exists(p)) return false; - - int error = g_unlink (p.to_string().c_str()); - - if(error == -1) - { - throw filesystem_error(g_strerror(errno), errno); - } - return true; -} - void rename (const path & from_path, const path & to_path) { diff --git a/libs/pbd/pbd/filesystem.h b/libs/pbd/pbd/filesystem.h index 9f5608bc4c..274d1d39b3 100644 --- a/libs/pbd/pbd/filesystem.h +++ b/libs/pbd/pbd/filesystem.h @@ -149,18 +149,6 @@ bool create_directory(const path & p); bool create_directories(const path & p); /** - * Attempt to delete the file at path p as if by the glib function - * g_unlink. - * - * @return true if file existed prior to removing it, false if file - * at p did not exist. - * - * @throw filesystem_error if removing the file failed for any other - * reason other than the file did not exist. - */ -bool remove(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); |