diff options
author | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-31 18:04:33 +0000 |
---|---|---|
committer | evan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-31 18:04:33 +0000 |
commit | 8ce9e490f79236a93767ab3e153995e9c19735dd (patch) | |
tree | 08aaf3e0b68f7a3e9b84691999f719cf5fc992bb /base/file_path.cc | |
parent | 814e87b6e5236aaa38d97a9e2b2e9e6a4bae2c59 (diff) | |
download | chromium_src-8ce9e490f79236a93767ab3e153995e9c19735dd.zip chromium_src-8ce9e490f79236a93767ab3e153995e9c19735dd.tar.gz chromium_src-8ce9e490f79236a93767ab3e153995e9c19735dd.tar.bz2 |
FilePath: remove some functions that aren't really used.
And fix the one caller.
Review URL: http://codereview.chromium.org/7087009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87327 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/file_path.cc')
-rw-r--r-- | base/file_path.cc | 35 |
1 files changed, 9 insertions, 26 deletions
diff --git a/base/file_path.cc b/base/file_path.cc index 0d0b40b..35361be 100644 --- a/base/file_path.cc +++ b/base/file_path.cc @@ -551,43 +551,26 @@ FilePath FilePath::FromWStringHack(const std::wstring& wstring) { } #endif -// static. -void FilePath::WriteStringTypeToPickle(Pickle* pickle, - const StringType& path) { -#if defined(WCHAR_T_IS_UTF16) - pickle->WriteWString(path); -#elif defined(WCHAR_T_IS_UTF32) - pickle->WriteString(path); +void FilePath::WriteToPickle(Pickle* pickle) { +#if defined(OS_WIN) + pickle->WriteString16(path_); #else - NOTIMPLEMENTED() << "Impossible encoding situation!"; + pickle->WriteString(path_); #endif } -// static. -bool FilePath::ReadStringTypeFromPickle(Pickle* pickle, void** iter, - StringType* path) { -#if defined(WCHAR_T_IS_UTF16) - if (!pickle->ReadWString(iter, path)) - return false; -#elif defined(WCHAR_T_IS_UTF32) - if (!pickle->ReadString(iter, path)) +bool FilePath::ReadFromPickle(Pickle* pickle, void** iter) { +#if defined(OS_WIN) + if (!pickle->ReadString16(iter, &path_)) return false; #else - NOTIMPLEMENTED() << "Impossible encoding situation!"; - return false; + if (!pickle->ReadString(iter, &path_)) + return false; #endif return true; } -void FilePath::WriteToPickle(Pickle* pickle) { - WriteStringTypeToPickle(pickle, value()); -} - -bool FilePath::ReadFromPickle(Pickle* pickle, void** iter) { - return ReadStringTypeFromPickle(pickle, iter, &path_); -} - #if defined(OS_WIN) // Windows specific implementation of file string comparisons |