summaryrefslogtreecommitdiffstats
path: root/base/file_util.cc
diff options
context:
space:
mode:
authormaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 19:39:10 +0000
committermaruel@chromium.org <maruel@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-09-23 19:39:10 +0000
commit8d60757991fd8e74e2d6d8a25912d24c47e9a421 (patch)
treedc406e291ef6aade6c98402b91bc1946c9952b2d /base/file_util.cc
parenta5d1e1e2cf6deb70a8476fd1f970c697274cbca7 (diff)
downloadchromium_src-8d60757991fd8e74e2d6d8a25912d24c47e9a421.zip
chromium_src-8d60757991fd8e74e2d6d8a25912d24c47e9a421.tar.gz
chromium_src-8d60757991fd8e74e2d6d8a25912d24c47e9a421.tar.bz2
Revert "Add a TouchFile function that operates on FilePaths + fixing a bug"
This reverts commit 60322. TBR=dumi TEST=none BUG=none Review URL: http://codereview.chromium.org/3439019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
-rw-r--r--base/file_util.cc22
1 files changed, 0 insertions, 22 deletions
diff --git a/base/file_util.cc b/base/file_util.cc
index 747232b..e618903 100644
--- a/base/file_util.cc
+++ b/base/file_util.cc
@@ -200,28 +200,6 @@ bool IsDotDot(const FilePath& path) {
return FILE_PATH_LITERAL("..") == path.BaseName().value();
}
-bool TouchFile(const FilePath& path,
- const base::Time& last_accessed,
- const base::Time& last_modified) {
- base::PlatformFile file =
- base::CreatePlatformFile(path,
- base::PLATFORM_FILE_OPEN |
- base::PLATFORM_FILE_WRITE_ATTRIBUTES,
- NULL, NULL);
- if (file != base::kInvalidPlatformFileValue) {
- bool result = base::TouchPlatformFile(file, last_accessed, last_modified);
- base::ClosePlatformFile(file);
- return result;
- }
-
- return false;
-}
-
-bool SetLastModifiedTime(const FilePath& path,
- const base::Time& last_modified) {
- return TouchFile(path, last_modified, last_modified);
-}
-
bool CloseFile(FILE* file) {
if (file == NULL)
return true;