summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authormsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 21:46:32 +0000
committermsw@chromium.org <msw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-13 21:46:32 +0000
commit62b4e52857f1fc8c0e26be90bc5e770e65f12aec (patch)
tree9101c313ebb60fda88a18f2aac014007011385dd /base
parent36717d9b4e6ac635fe762ae9974fd57538df2fa8 (diff)
downloadchromium_src-62b4e52857f1fc8c0e26be90bc5e770e65f12aec.zip
chromium_src-62b4e52857f1fc8c0e26be90bc5e770e65f12aec.tar.gz
chromium_src-62b4e52857f1fc8c0e26be90bc5e770e65f12aec.tar.bz2
Nix CommandLine::GetSwitchCount.
BUG=73195 TEST=none Review URL: http://codereview.chromium.org/7342024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92423 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/command_line.cc4
-rw-r--r--base/command_line.h4
2 files changed, 0 insertions, 8 deletions
diff --git a/base/command_line.cc b/base/command_line.cc
index acf2502..ff89e1a 100644
--- a/base/command_line.cc
+++ b/base/command_line.cc
@@ -290,10 +290,6 @@ CommandLine::StringType CommandLine::GetSwitchValueNative(
return result == switches_.end() ? StringType() : result->second;
}
-size_t CommandLine::GetSwitchCount() const {
- return switches_.size();
-}
-
void CommandLine::AppendSwitch(const std::string& switch_string) {
AppendSwitchNative(switch_string, StringType());
}
diff --git a/base/command_line.h b/base/command_line.h
index d9f3138..4b40133 100644
--- a/base/command_line.h
+++ b/base/command_line.h
@@ -99,10 +99,6 @@ class BASE_API CommandLine {
FilePath GetSwitchValuePath(const std::string& switch_string) const;
StringType GetSwitchValueNative(const std::string& switch_string) const;
- // Get the number of switches in this process.
- // TODO(msw): Remove unnecessary API.
- size_t GetSwitchCount() const;
-
// Get a copy of all switches, along with their values.
const SwitchMap& GetSwitches() const { return switches_; }