diff options
author | raymes <raymes@chromium.org> | 2015-05-31 18:32:24 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-06-01 01:32:49 +0000 |
commit | 9a66ed01a85062d9ed2a70138597825bd1e4651f (patch) | |
tree | 41d1470f74523c7cc133b87afe88e85c09778938 /components/content_settings | |
parent | 82171fab092ec778bbec44b521a0f73495e7783e (diff) | |
download | chromium_src-9a66ed01a85062d9ed2a70138597825bd1e4651f.zip chromium_src-9a66ed01a85062d9ed2a70138597825bd1e4651f.tar.gz chromium_src-9a66ed01a85062d9ed2a70138597825bd1e4651f.tar.bz2 |
Remove unused "Website Settings" view of content settings
This code has been unused for 8+months.
BUG=492024
Review URL: https://codereview.chromium.org/1156983002
Cr-Commit-Position: refs/heads/master@{#332150}
Diffstat (limited to 'components/content_settings')
-rw-r--r-- | components/content_settings/core/browser/content_settings_utils.cc | 11 | ||||
-rw-r--r-- | components/content_settings/core/browser/content_settings_utils.h | 3 |
2 files changed, 0 insertions, 14 deletions
diff --git a/components/content_settings/core/browser/content_settings_utils.cc b/components/content_settings/core/browser/content_settings_utils.cc index 2c774fb..a51f917 100644 --- a/components/content_settings/core/browser/content_settings_utils.cc +++ b/components/content_settings/core/browser/content_settings_utils.cc @@ -62,17 +62,6 @@ std::string GetTypeName(ContentSettingsType type) { return std::string(kTypeNames[type]); } -bool GetTypeFromName(const std::string& name, - ContentSettingsType* return_setting) { - for (size_t type = 0; type < CONTENT_SETTINGS_NUM_TYPES; ++type) { - if (name.compare(kTypeNames[type]) == 0) { - *return_setting = static_cast<ContentSettingsType>(type); - return true; - } - } - return false; -} - std::string ContentSettingToString(ContentSetting setting) { switch (setting) { case CONTENT_SETTING_ALLOW: diff --git a/components/content_settings/core/browser/content_settings_utils.h b/components/content_settings/core/browser/content_settings_utils.h index 26efe6b..bba1de5 100644 --- a/components/content_settings/core/browser/content_settings_utils.h +++ b/components/content_settings/core/browser/content_settings_utils.h @@ -30,9 +30,6 @@ typedef std::pair<ContentSettingsPattern, ContentSettingsPattern> PatternPair; std::string GetTypeName(ContentSettingsType type); -bool GetTypeFromName(const std::string& name, - ContentSettingsType* return_setting) WARN_UNUSED_RESULT; - std::string ContentSettingToString(ContentSetting setting); ContentSetting ContentSettingFromString(const std::string& name); |