diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/file_util.cc | 7 | ||||
-rw-r--r-- | base/file_util.h | 5 |
2 files changed, 0 insertions, 12 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index 9ba6eed..ab0ae58 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -403,13 +403,6 @@ int ReadFile(const std::wstring& filename, char* data, int size) { bool SetCurrentDirectory(const std::wstring& directory) { return SetCurrentDirectory(FilePath::FromWStringHack(directory)); } -void TrimFilename(std::wstring* path) { - if (EndsWithSeparator(path)) { - TrimTrailingSeparator(path); - } else { - *path = FilePath::FromWStringHack(*path).DirName().ToWStringHack(); - } -} void UpOneDirectory(std::wstring* dir) { FilePath path = FilePath::FromWStringHack(*dir); FilePath directory = path.DirName(); diff --git a/base/file_util.h b/base/file_util.h index f12d6f2..6728a0d 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -71,11 +71,6 @@ void UpOneDirectory(std::wstring* dir); // Deprecated. Use FilePath::DirName instead. void UpOneDirectoryOrEmpty(std::wstring* dir); -// Strips the filename component from the end of 'path'. If path ends with a -// separator, then just drop the separator. -// Deprecated. Use FilePath::DirName instead. -void TrimFilename(std::wstring* path); - // Returns the filename portion of 'path', without any leading \'s or /'s. // Deprecated. Use FilePath::BaseName instead. std::wstring GetFilenameFromPath(const std::wstring& path); |