summaryrefslogtreecommitdiffstats
path: root/base/file_util.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 22:01:01 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-21 22:01:01 +0000
commitd841205ef77d7f98bf780516d3be96a3ba6c6f29 (patch)
treecb95bf8fc37fca6c95ddc960379f8191d2e68ea1 /base/file_util.cc
parentb6c911a716816238f5155ef1522622d76d4665a2 (diff)
downloadchromium_src-d841205ef77d7f98bf780516d3be96a3ba6c6f29.zip
chromium_src-d841205ef77d7f98bf780516d3be96a3ba6c6f29.tar.gz
chromium_src-d841205ef77d7f98bf780516d3be96a3ba6c6f29.tar.bz2
Stop using and remove deprecated file_util::TrimFilename().
Review URL: http://codereview.chromium.org/67267 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14142 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
-rw-r--r--base/file_util.cc7
1 files changed, 0 insertions, 7 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();