Delete unused method FilesystemInterface::IsAbsent.

BUG=webrtc:6424

Review-Url: https://codereview.webrtc.org/3012583002
Cr-Commit-Position: refs/heads/master@{#19620}
This commit is contained in:
nisse
2017-08-31 00:22:06 -07:00
committed by Commit Bot
parent 46f9b6cbb8
commit 125e95eaf6
5 changed files with 0 additions and 33 deletions

View File

@ -111,15 +111,6 @@ bool Win32Filesystem::IsFile(const Pathname &path) {
return (data.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY) == 0;
}
bool Win32Filesystem::IsAbsent(const Pathname& path) {
WIN32_FILE_ATTRIBUTE_DATA data = {0};
if (0 != ::GetFileAttributesEx(ToUtf16(path.pathname()).c_str(),
GetFileExInfoStandard, &data))
return false;
DWORD err = ::GetLastError();
return (ERROR_FILE_NOT_FOUND == err || ERROR_PATH_NOT_FOUND == err);
}
bool Win32Filesystem::GetFileSize(const Pathname &pathname, size_t *size) {
WIN32_FILE_ATTRIBUTE_DATA data = {0};
if (::GetFileAttributesEx(ToUtf16(pathname.pathname()).c_str(),