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 |