Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(281)

Unified Diff: net/disk_cache/simple/simple_util.cc

Issue 22571011: Remove simple_util::GetMTime from simple cache. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/simple/simple_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_util.cc
diff --git a/net/disk_cache/simple/simple_util.cc b/net/disk_cache/simple/simple_util.cc
index e9ec067635ada57f24956ca1f501a893e6db2fb5..23175498918e5dd3f6d8305efec26ce2b7667743 100644
--- a/net/disk_cache/simple/simple_util.cc
+++ b/net/disk_cache/simple/simple_util.cc
@@ -85,16 +85,6 @@ int64 GetFileOffsetFromKeyAndDataOffset(const std::string& key,
return headers_size + data_offset;
}
-// TODO(clamy, gavinp): this should go in base
-bool GetMTime(const base::FilePath& path, base::Time* out_mtime) {
- DCHECK(out_mtime);
- base::PlatformFileInfo file_info;
- if (!file_util::GetFileInfo(path, &file_info))
- return false;
- *out_mtime = file_info.last_modified;
- return true;
-}
-
-} // namespace simple_backend
+} // namespace simple_util
} // namespace disk_cache
« no previous file with comments | « net/disk_cache/simple/simple_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698