From c4eaca55f090aa2d3b5b61b604f456b7dbcfd99e Mon Sep 17 00:00:00 2001 From: "thestig@chromium.org" Date: Fri, 24 Apr 2009 02:59:14 +0000 Subject: 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 --- base/file_util.cc | 6 ------ base/file_util.h | 3 --- 2 files changed, 9 deletions(-) (limited to 'base') 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(path->value()); diff --git a/base/file_util.h b/base/file_util.h index 102dd4b..fb7a739 100644 --- a/base/file_util.h +++ b/base/file_util.h @@ -80,9 +80,6 @@ FilePath::StringType GetFileExtensionFromPath(const FilePath& path); // Deprecated temporary compatibility function. std::wstring GetFileExtensionFromPath(const std::wstring& path); -// Deprecated compatibility function. Use FilePath::RemoveExtension. -std::wstring GetFilenameWithoutExtensionFromPath(const std::wstring& path); - // Returns the directory component of a path, without the trailing // path separator, or an empty string on error. The function does not // check for the existence of the path, so if it is passed a directory -- cgit v1.1