Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1341)

Unified Diff: chrome/browser/extensions/api/declarative/declarative_api.cc

Issue 10977073: Delete some unused code found by -Wunused-function (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: leiz Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/declarative/declarative_api.cc
diff --git a/chrome/browser/extensions/api/declarative/declarative_api.cc b/chrome/browser/extensions/api/declarative/declarative_api.cc
index ce226fd6f844af5d5bb6f93f5ab77440cc1c965a..5665e8f941bf59ee5184fe1fbf5cdd8c0451a330 100644
--- a/chrome/browser/extensions/api/declarative/declarative_api.cc
+++ b/chrome/browser/extensions/api/declarative/declarative_api.cc
@@ -20,22 +20,6 @@ namespace AddRules = extensions::api::events::Event::AddRules;
namespace GetRules = extensions::api::events::Event::GetRules;
namespace RemoveRules = extensions::api::events::Event::RemoveRules;
-namespace {
-
-// Adds all entries from |list| to |out|. Assumes that all entries of |list|
-// are strings. Returns true if successful.
-bool AddAllStringValues(ListValue* list, std::vector<std::string>* out) {
- for (ListValue::iterator i = list->begin(); i != list->end(); ++i) {
- std::string value;
- if (!(*i)->GetAsString(&value))
- return false;
- out->push_back(value);
- }
- return true;
-}
-
-} // namespace
-
namespace extensions {
RulesFunction::RulesFunction() : rules_registry_(NULL) {}

Powered by Google App Engine
This is Rietveld 408576698