diff options
author | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-09 17:30:02 +0000 |
---|---|---|
committer | pneubeck@chromium.org <pneubeck@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-07-09 17:30:02 +0000 |
commit | becc7c8df8a45d03f62c8f19f3b5975cd9ee42da (patch) | |
tree | 6ddb5cb4ee6b4462b0212e616fece8cfcba78615 /chrome/browser/chromeos/cros/network_library.cc | |
parent | 5ab6e48e44b14d0b46f2348e999bf8cca5de74a6 (diff) | |
download | chromium_src-becc7c8df8a45d03f62c8f19f3b5975cd9ee42da.zip chromium_src-becc7c8df8a45d03f62c8f19f3b5975cd9ee42da.tar.gz chromium_src-becc7c8df8a45d03f62c8f19f3b5975cd9ee42da.tar.bz2 |
Remove unused code from NetworkLibrary.
BUG=NONE
Review URL: https://chromiumcodereview.appspot.com/18635002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@210594 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/chromeos/cros/network_library.cc')
-rw-r--r-- | chrome/browser/chromeos/cros/network_library.cc | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/chrome/browser/chromeos/cros/network_library.cc b/chrome/browser/chromeos/cros/network_library.cc index 8db027b..86297d7 100644 --- a/chrome/browser/chromeos/cros/network_library.cc +++ b/chrome/browser/chromeos/cros/network_library.cc @@ -227,56 +227,16 @@ Network::Network(const std::string& service_path, notify_failure_(false), profile_type_(PROFILE_NONE), service_path_(service_path), - type_(type), - is_behind_portal_for_testing_(false) { + type_(type) { } Network::~Network() { - for (PropertyMap::const_iterator props = property_map_.begin(); - props != property_map_.end(); ++props) { - delete props->second; - } } void Network::SetNetworkParser(NetworkParser* parser) { network_parser_.reset(parser); } -void Network::UpdatePropertyMap(PropertyIndex index, const base::Value* value) { - if (!value) { - // Clear the property if |value| is NULL. - PropertyMap::iterator iter(property_map_.find(index)); - if (iter != property_map_.end()) { - delete iter->second; - property_map_.erase(iter); - } - return; - } - - // Add the property to property_map_. Delete previous value if necessary. - Value*& entry = property_map_[index]; - delete entry; - entry = value->DeepCopy(); - if (VLOG_IS_ON(3)) { - std::string value_json; - base::JSONWriter::WriteWithOptions(value, - base::JSONWriter::OPTIONS_PRETTY_PRINT, - &value_json); - VLOG(3) << "Updated property map on network: " - << unique_id() << "[" << index << "] = " << value_json; - } -} - -bool Network::GetProperty(PropertyIndex index, - const base::Value** value) const { - PropertyMap::const_iterator i = property_map_.find(index); - if (i == property_map_.end()) - return false; - if (value != NULL) - *value = i->second; - return true; -} - // static Network* Network::CreateForTesting(ConnectionType type) { return new Network("fake_service_path", type); @@ -1121,14 +1081,6 @@ void WifiNetwork::EraseCredentials() { WipeString(&eap_passphrase_); } -void WifiNetwork::SetIdentity(const std::string& identity) { - SetStringProperty(flimflam::kIdentityProperty, identity, &identity_); -} - -void WifiNetwork::SetHiddenSSID(bool hidden_ssid) { - SetBooleanProperty(flimflam::kWifiHiddenSsid, hidden_ssid, &hidden_ssid_); -} - void WifiNetwork::SetEAPMethod(EAPMethod method) { eap_method_ = method; switch (method) { |