diff options
author | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-16 07:13:53 +0000 |
---|---|---|
committer | viettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-08-16 07:13:53 +0000 |
commit | dc9a67601b9d8c952bf399f0309519273f82bfd5 (patch) | |
tree | b618c9da1cef3fa99718897cf523cb8768d4a273 /base/values.cc | |
parent | a6dbaac4225f2fa5a170bdc657ab306390fdc439 (diff) | |
download | chromium_src-dc9a67601b9d8c952bf399f0309519273f82bfd5.zip chromium_src-dc9a67601b9d8c952bf399f0309519273f82bfd5.tar.gz chromium_src-dc9a67601b9d8c952bf399f0309519273f82bfd5.tar.bz2 |
Remove deprecated wstring Get(As)String() methods from Value, etc.
BUG=23581
TEST=builds and passes tests
Review URL: http://codereview.chromium.org/3117017
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@56187 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/values.cc')
-rw-r--r-- | base/values.cc | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/base/values.cc b/base/values.cc index 7e348dc..cd2738b 100644 --- a/base/values.cc +++ b/base/values.cc @@ -119,13 +119,6 @@ bool Value::GetAsString(string16* out_value) const { return false; } -#if !defined(WCHAR_T_IS_UTF16) -// TODO(viettrungluu): Deprecated and to be removed: -bool Value::GetAsString(std::wstring* out_value) const { - return false; -} -#endif - Value* Value::DeepCopy() const { // This method should only be getting called for null Values--all subclasses // need to provide their own implementation;. @@ -254,15 +247,6 @@ bool StringValue::GetAsString(string16* out_value) const { return true; } -#if !defined(WCHAR_T_IS_UTF16) -// TODO(viettrungluu): Deprecated and to be removed: -bool StringValue::GetAsString(std::wstring* out_value) const { - if (out_value) - *out_value = UTF8ToWide(value_); - return true; -} -#endif - Value* StringValue::DeepCopy() const { return CreateStringValue(value_); } @@ -631,22 +615,6 @@ bool DictionaryValue::GetReal(const std::wstring& path, } // TODO(viettrungluu): Deprecated and to be removed: -bool DictionaryValue::GetString(const std::wstring& path, - std::string* out_value) const { - return GetString(WideToUTF8(path), out_value); -} - -// TODO(viettrungluu): Deprecated and to be removed: -bool DictionaryValue::GetString(const std::wstring& path, - std::wstring* out_value) const { - Value* value; - if (!Get(WideToUTF8(path), &value)) - return false; - - return value->GetAsString(out_value); -} - -// TODO(viettrungluu): Deprecated and to be removed: bool DictionaryValue::GetBinary(const std::wstring& path, BinaryValue** out_value) const { return GetBinary(WideToUTF8(path), out_value); @@ -985,17 +953,6 @@ bool ListValue::GetString(size_t index, string16* out_value) const { return value->GetAsString(out_value); } -#if !defined(WCHAR_T_IS_UTF16) -// TODO(viettrungluu): Deprecated and to be removed: -bool ListValue::GetString(size_t index, std::wstring* out_value) const { - Value* value; - if (!Get(index, &value)) - return false; - - return value->GetAsString(out_value); -} -#endif - bool ListValue::GetBinary(size_t index, BinaryValue** out_value) const { Value* value; bool result = Get(index, &value); |