Index: runtime/bin/file_macos.cc |
diff --git a/runtime/bin/file_macos.cc b/runtime/bin/file_macos.cc |
index c693f949bc2a1a8810aadd177dc42b0a5fc9b428..27f7177e21192e6bc607e4770218bac033892005 100644 |
--- a/runtime/bin/file_macos.cc |
+++ b/runtime/bin/file_macos.cc |
@@ -283,25 +283,6 @@ char* File::GetCanonicalPath(const char* pathname) { |
} |
-char* File::GetContainingDirectory(char* pathname) { |
- // Report errors for non-regular files. |
- struct stat st; |
- if (TEMP_FAILURE_RETRY(stat(pathname, &st)) == 0) { |
- if (!S_ISREG(st.st_mode)) { |
- errno = (S_ISDIR(st.st_mode)) ? EISDIR : ENOENT; |
- return NULL; |
- } |
- } else { |
- return NULL; |
- } |
- char* path = NULL; |
- do { |
- path = dirname(pathname); |
- } while (path == NULL && errno == EINTR); |
- return GetCanonicalPath(path); |
-} |
- |
- |
const char* File::PathSeparator() { |
return "/"; |
} |