Delete FilesystemInterface::DeleteFolderAndContents and related methods.
Additional methods deleted: DeleteFolderContents IsTemporaryPath GetAppTempFolder Unused since cl https://codereview.webrtc.org/2872283002/ BUG=webrtc:7345,webrtc:6424 Review-Url: https://codereview.webrtc.org/2887093002 Cr-Commit-Position: refs/heads/master@{#18194}
This commit is contained in:
@ -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
|
||||
|
||||
Reference in New Issue
Block a user