diff options
Diffstat (limited to 'base/file_util_posix.cc')
-rw-r--r-- | base/file_util_posix.cc | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/base/file_util_posix.cc b/base/file_util_posix.cc index 590b94d..c6069e6 100644 --- a/base/file_util_posix.cc +++ b/base/file_util_posix.cc @@ -60,18 +60,6 @@ static const char* kTempFileName = "com.google.chrome.XXXXXX"; static const char* kTempFileName = "org.chromium.XXXXXX"; #endif -std::wstring GetDirectoryFromPath(const std::wstring& path) { - if (EndsWithSeparator(path)) { - return FilePath::FromWStringHack(path) - .StripTrailingSeparators() - .ToWStringHack(); - } else { - char full_path[PATH_MAX]; - base::strlcpy(full_path, WideToUTF8(path).c_str(), arraysize(full_path)); - return UTF8ToWide(dirname(full_path)); - } -} - bool AbsolutePath(FilePath* path) { char full_path[PATH_MAX]; if (realpath(path->value().c_str(), full_path) == NULL) |