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

Unified Diff: webrtc/rtc_base/unixfilesystem.cc

Issue 3012583002: Delete unused method FilesystemInterface::IsAbsent. (Closed)
Patch Set: Created 3 years, 4 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/rtc_base/unixfilesystem.h ('k') | webrtc/rtc_base/win32filesystem.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/rtc_base/unixfilesystem.cc
diff --git a/webrtc/rtc_base/unixfilesystem.cc b/webrtc/rtc_base/unixfilesystem.cc
index ebf20c7c99fc8f8f1e59c2388f8a3c5989f2bc0b..3a63e23189703f02565a2058ac48944f56c408ac 100644
--- a/webrtc/rtc_base/unixfilesystem.cc
+++ b/webrtc/rtc_base/unixfilesystem.cc
@@ -144,14 +144,6 @@ bool UnixFilesystem::IsFile(const Pathname& pathname) {
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)
« no previous file with comments | « webrtc/rtc_base/unixfilesystem.h ('k') | webrtc/rtc_base/win32filesystem.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698