summaryrefslogtreecommitdiffstats
path: root/base/file_util_posix.cc
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 17:35:24 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-05-18 17:35:24 +0000
commitf4c6499a37788cd2bc2c4781f005ad2c03fd47e7 (patch)
treeb39c30d15d470617ecbb695e7fc3b48791f4becc /base/file_util_posix.cc
parent9a514902f55117eae04a60f917905e33e9914d32 (diff)
downloadchromium_src-f4c6499a37788cd2bc2c4781f005ad2c03fd47e7.zip
chromium_src-f4c6499a37788cd2bc2c4781f005ad2c03fd47e7.tar.gz
chromium_src-f4c6499a37788cd2bc2c4781f005ad2c03fd47e7.tar.bz2
Revert "Add file_util::ReplaceFile and use it in ImportantFileWriter."
http://crbug.com/11585 TBR=stoyan Review URL: http://codereview.chromium.org/113534 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16296 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r--base/file_util_posix.cc4
1 files changed, 0 insertions, 4 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc
index 5d44ca3..96c1c17 100644
--- a/base/file_util_posix.cc
+++ b/base/file_util_posix.cc
@@ -168,10 +168,6 @@ bool Move(const FilePath& from_path, const FilePath& to_path) {
return true;
}
-bool ReplaceFile(const FilePath& from_path, const FilePath& to_path) {
- return (rename(from_path.value().c_str(), to_path.value().c_str()) == 0);
-}
-
bool CopyDirectory(const FilePath& from_path,
const FilePath& to_path,
bool recursive) {