diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-24 02:59:14 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-04-24 02:59:14 +0000 |
commit | c4eaca55f090aa2d3b5b61b604f456b7dbcfd99e (patch) | |
tree | 6ed8985fe2c88d2892d5e3088212736072085cf0 /base/file_util.cc | |
parent | 40ecd8a10372b6be9a2cb830dd1fe004b51ca2ec (diff) | |
download | chromium_src-c4eaca55f090aa2d3b5b61b604f456b7dbcfd99e.zip chromium_src-c4eaca55f090aa2d3b5b61b604f456b7dbcfd99e.tar.gz chromium_src-c4eaca55f090aa2d3b5b61b604f456b7dbcfd99e.tar.bz2 |
Remove deprecated file_util::GetFilenameWithoutExtensionFromPath(), also convert ElideFilename() to take a FilePath.
Review URL: http://codereview.chromium.org/92060
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14409 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_util.cc')
-rw-r--r-- | base/file_util.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/base/file_util.cc b/base/file_util.cc index ab0ae58..65cdf91 100644 --- a/base/file_util.cc +++ b/base/file_util.cc @@ -90,12 +90,6 @@ FilePath::StringType GetFileExtensionFromPath(const FilePath& path) { file_name, last_dot+1); } -std::wstring GetFilenameWithoutExtensionFromPath(const std::wstring& path) { - std::wstring file_name = GetFilenameFromPath(path); - std::wstring::size_type last_dot = file_name.rfind(L'.'); - return file_name.substr(0, last_dot); -} - void InsertBeforeExtension(FilePath* path, const FilePath::StringType& suffix) { FilePath::StringType& value = const_cast<FilePath::StringType&>(path->value()); |