summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 22:35:33 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-07-30 22:35:33 +0000
commit0436fcd542e8ce436fe9395a64cc03fa369276b1 (patch)
tree089866b06c42ae4fa41b9d5b8a595c06603f3a57 /base
parenta33cad2b626eef69aa54943c985f9ab030a8edb9 (diff)
downloadchromium_src-0436fcd542e8ce436fe9395a64cc03fa369276b1.zip
chromium_src-0436fcd542e8ce436fe9395a64cc03fa369276b1.tar.gz
chromium_src-0436fcd542e8ce436fe9395a64cc03fa369276b1.tar.bz2
Remove deprecated CommandLine API.
Cleaned up the final few callers, punting the remaining harder ones to TODOs. Review URL: http://codereview.chromium.org/3043033 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54400 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/command_line.cc12
-rw-r--r--base/command_line.h9
2 files changed, 0 insertions, 21 deletions
diff --git a/base/command_line.cc b/base/command_line.cc
index b94e837..de7870d 100644
--- a/base/command_line.cc
+++ b/base/command_line.cc
@@ -388,11 +388,6 @@ void CommandLine::AppendSwitchASCII(const std::string& switch_string,
AppendSwitchNative(switch_string, ASCIIToWide(value_string));
}
-void CommandLine::AppendSwitchWithValue(const std::string& switch_string,
- const std::wstring& value_string) {
- AppendSwitchNative(switch_string, value_string);
-}
-
void CommandLine::AppendSwitchNative(const std::string& switch_string,
const std::wstring& value_string) {
std::wstring value_string_edit;
@@ -463,13 +458,6 @@ void CommandLine::AppendSwitchASCII(const std::string& switch_string,
AppendSwitchNative(switch_string, value_string);
}
-void CommandLine::AppendSwitchWithValue(const std::string& switch_string,
- const std::wstring& value_string) {
- // TODO(evanm): deprecate.
- std::string mb_value = base::SysWideToNativeMB(value_string);
- AppendSwitchNative(switch_string, mb_value);
-}
-
void CommandLine::AppendLooseValue(const std::wstring& value) {
argv_.push_back(base::SysWideToNativeMB(value));
}
diff --git a/base/command_line.h b/base/command_line.h
index ae05021..2178bdf 100644
--- a/base/command_line.h
+++ b/base/command_line.h
@@ -165,15 +165,6 @@ class CommandLine {
void AppendSwitchASCII(const std::string& switch_string,
const std::string& value);
- // Append a switch and value to the command line.
- // TODO(evanm): remove all AppendSwitchWithValue() instances.
- void AppendSwitchWithValue(const std::string& switch_string,
- const std::wstring& value_string);
- void AppendSwitchWithValue(const std::string& switch_string,
- const std::string& value_string) {
- AppendSwitchASCII(switch_string, value_string);
- }
-
// Append a loose value to the command line.
void AppendLooseValue(const std::wstring& value);