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

Unified Diff: webrtc/base/win32filesystem.cc

Issue 2887093002: Delete FilesystemInterface::DeleteFolderAndContents and related methods. (Closed)
Patch Set: Created 3 years, 7 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 519f62a70eadd8b7231323f49d0c4bb2f4fef2b8..0e7dd545e2db1a114e5672ccd8b2df335799078e 100644
--- a/webrtc/base/win32filesystem.cc
+++ b/webrtc/base/win32filesystem.cc
@@ -160,17 +160,6 @@ bool Win32Filesystem::IsAbsent(const Pathname& path) {
return (ERROR_FILE_NOT_FOUND == err || ERROR_PATH_NOT_FOUND == err);
}
-bool Win32Filesystem::IsTemporaryPath(const Pathname& pathname) {
- TCHAR buffer[MAX_PATH + 1];
- if (!::GetTempPath(arraysize(buffer), buffer))
- return false;
- if (!IsCurrentProcessLowIntegrity() &&
- !::GetLongPathName(buffer, buffer, arraysize(buffer)))
- return false;
- return (::strnicmp(ToUtf16(pathname.pathname()).c_str(),
- buffer, strlen(buffer)) == 0);
-}
-
bool Win32Filesystem::GetFileSize(const Pathname &pathname, size_t *size) {
WIN32_FILE_ATTRIBUTE_DATA data = {0};
if (::GetFileAttributesEx(ToUtf16(pathname.pathname()).c_str(),
@@ -210,11 +199,4 @@ bool Win32Filesystem::GetAppPathname(Pathname* path) {
return true;
}
-bool Win32Filesystem::GetAppTempFolder(Pathname* path) {
- if (!GetAppPathname(path))
- return false;
- std::string filename(path->filename());
- return GetTemporaryFolder(*path, true, &filename);
-}
-
} // 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