Index: runtime/bin/file_linux.cc |
diff --git a/runtime/bin/file_linux.cc b/runtime/bin/file_linux.cc |
index 7c4dddaa2421e0f770059ccc1432a36f7e0e9af1..7d974a489ec2bca3cbb75616093c8bbe8124459c 100644 |
--- a/runtime/bin/file_linux.cc |
+++ b/runtime/bin/file_linux.cc |
@@ -275,25 +275,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 "/"; |
} |