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

Unified Diff: webrtc/base/win32filesystem.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/win32filesystem.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/win32filesystem.cc
diff --git a/webrtc/base/win32filesystem.cc b/webrtc/base/win32filesystem.cc
index faca8e9c08fb80536017173a639269cac2e1f054..5445140ef2b1d8655440b20614b7c93c3bd248a8 100644
--- a/webrtc/base/win32filesystem.cc
+++ b/webrtc/base/win32filesystem.cc
@@ -152,26 +152,4 @@ bool Win32Filesystem::GetFileSize(const Pathname &pathname, size_t *size) {
return true;
}
-bool Win32Filesystem::GetFileTime(const Pathname& path, FileTimeType which,
- time_t* time) {
- WIN32_FILE_ATTRIBUTE_DATA data = {0};
- if (::GetFileAttributesEx(ToUtf16(path.pathname()).c_str(),
- GetFileExInfoStandard, &data) == 0)
- return false;
- switch (which) {
- case FTT_CREATED:
- FileTimeToUnixTime(data.ftCreationTime, time);
- break;
- case FTT_MODIFIED:
- FileTimeToUnixTime(data.ftLastWriteTime, time);
- break;
- case FTT_ACCESSED:
- FileTimeToUnixTime(data.ftLastAccessTime, time);
- break;
- default:
- return false;
- }
- return true;
-}
-
} // namespace rtc
« no previous file with comments | « webrtc/base/win32filesystem.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698