Index: runtime/bin/file_android.cc |
diff --git a/runtime/bin/file_android.cc b/runtime/bin/file_android.cc |
index b166aad74c3387b6f84d854642650746fec5a37a..ba7ac88b8df46632fbb18570ee95a9cfc6b26a3d 100644 |
--- a/runtime/bin/file_android.cc |
+++ b/runtime/bin/file_android.cc |
@@ -281,25 +281,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 "/"; |
} |