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

Unified Diff: webrtc/base/unixfilesystem.cc

Issue 2926713007: Delete unused method FilesystemInterface::GetFileTime. (Closed)
Patch Set: Rebased. Created 3 years, 6 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 | « webrtc/base/unixfilesystem.h ('k') | webrtc/base/win32filesystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/unixfilesystem.cc
diff --git a/webrtc/base/unixfilesystem.cc b/webrtc/base/unixfilesystem.cc
index d106bbd933c64ebc57bab29bb187b79ada5bec78..490141248646807093be3e387a8e4d83b2e9d62b 100644
--- a/webrtc/base/unixfilesystem.cc
+++ b/webrtc/base/unixfilesystem.cc
@@ -218,27 +218,6 @@ bool UnixFilesystem::GetFileSize(const Pathname& pathname, size_t *size) {
return true;
}
-bool UnixFilesystem::GetFileTime(const Pathname& path, FileTimeType which,
- time_t* time) {
- struct stat st;
- if (::stat(path.pathname().c_str(), &st) != 0)
- return false;
- switch (which) {
- case FTT_CREATED:
- *time = st.st_ctime;
- break;
- case FTT_MODIFIED:
- *time = st.st_mtime;
- break;
- case FTT_ACCESSED:
- *time = st.st_atime;
- break;
- default:
- return false;
- }
- return true;
-}
-
char* UnixFilesystem::CopyString(const std::string& str) {
size_t size = str.length() + 1;
« no previous file with comments | « webrtc/base/unixfilesystem.h ('k') | webrtc/base/win32filesystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698