Delete unused method FilesystemInterface::IsAbsent.

BUG=webrtc:6424

Review-Url: https://codereview.webrtc.org/3012583002
Cr-Original-Commit-Position: refs/heads/master@{#19620}
Cr-Mirrored-From: https://chromium.googlesource.com/external/webrtc
Cr-Mirrored-Commit: 125e95eaf6c04faec20f85b7d7949f961fc12aea
diff --git a/rtc_base/fileutils.h b/rtc_base/fileutils.h
index a4a9472..ba4b289 100644
--- a/rtc_base/fileutils.h
+++ b/rtc_base/fileutils.h
@@ -98,10 +98,6 @@
   // Returns true if pathname refers to a file
   virtual bool IsFile(const Pathname& pathname) = 0;
 
-  // Returns true if pathname refers to no filesystem object, every parent
-  // directory either exists, or is also absent.
-  virtual bool IsAbsent(const Pathname& pathname) = 0;
-
   virtual std::string TempFilename(const Pathname &dir,
                                    const std::string &prefix) = 0;
 
@@ -147,10 +143,6 @@
     return EnsureDefaultFilesystem()->IsFile(pathname);
   }
 
-  static bool IsAbsent(const Pathname &pathname) {
-    return EnsureDefaultFilesystem()->IsAbsent(pathname);
-  }
-
   static std::string TempFilename(const Pathname &dir,
                                   const std::string &prefix) {
     return EnsureDefaultFilesystem()->TempFilename(dir, prefix);
diff --git a/rtc_base/unixfilesystem.cc b/rtc_base/unixfilesystem.cc
index ebf20c7..3a63e23 100644
--- a/rtc_base/unixfilesystem.cc
+++ b/rtc_base/unixfilesystem.cc
@@ -144,14 +144,6 @@
   return res == 0 && !S_ISDIR(st.st_mode);
 }
 
-bool UnixFilesystem::IsAbsent(const Pathname& pathname) {
-  struct stat st;
-  int res = ::stat(pathname.pathname().c_str(), &st);
-  // Note: we specifically maintain ENOTDIR as an error, because that implies
-  // that you could not call CreateFolder(pathname).
-  return res != 0 && ENOENT == errno;
-}
-
 bool UnixFilesystem::GetFileSize(const Pathname& pathname, size_t *size) {
   struct stat st;
   if (::stat(pathname.pathname().c_str(), &st) != 0)
diff --git a/rtc_base/unixfilesystem.h b/rtc_base/unixfilesystem.h
index 7270b83..3c157cb 100644
--- a/rtc_base/unixfilesystem.h
+++ b/rtc_base/unixfilesystem.h
@@ -46,10 +46,6 @@
   // Returns true of pathname represents an existing file
   bool IsFile(const Pathname& pathname) override;
 
-  // Returns true if pathname refers to no filesystem object, every parent
-  // directory either exists, or is also absent.
-  bool IsAbsent(const Pathname& pathname) override;
-
   std::string TempFilename(const Pathname& dir,
                            const std::string& prefix) override;
 
diff --git a/rtc_base/win32filesystem.cc b/rtc_base/win32filesystem.cc
index 4544185..92ad70b 100644
--- a/rtc_base/win32filesystem.cc
+++ b/rtc_base/win32filesystem.cc
@@ -111,15 +111,6 @@
   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(),
diff --git a/rtc_base/win32filesystem.h b/rtc_base/win32filesystem.h
index 9d42033..0fff15d 100644
--- a/rtc_base/win32filesystem.h
+++ b/rtc_base/win32filesystem.h
@@ -38,10 +38,6 @@
   // Returns true if a file exists at path
   bool IsFile(const Pathname& path) override;
 
-  // Returns true if pathname refers to no filesystem object, every parent
-  // directory either exists, or is also absent.
-  bool IsAbsent(const Pathname& pathname) override;
-
   // All of the following functions set pathname and return true if successful.
   // Returned paths always include a trailing backslash.
   // If create is true, the path will be recursively created.