diff options
Diffstat (limited to 'base')
-rw-r--r-- | base/values.cc | 10 | ||||
-rw-r--r-- | base/values.h | 4 |
2 files changed, 0 insertions, 14 deletions
diff --git a/base/values.cc b/base/values.cc index feff299..f214ead 100644 --- a/base/values.cc +++ b/base/values.cc @@ -832,16 +832,6 @@ void ListValue::Append(Value* in_value) { list_.push_back(in_value); } -bool ListValue::AppendIfNotPresent(Value* in_value) { - DCHECK(in_value); - for (ValueVector::iterator i(list_.begin()); i != list_.end(); ++i) { - if ((*i)->Equals(in_value)) - return false; - } - list_.push_back(in_value); - return true; -} - bool ListValue::Insert(size_t index, Value* in_value) { DCHECK(in_value); if (index > list_.size()) diff --git a/base/values.h b/base/values.h index 248fc1d..6c66345 100644 --- a/base/values.h +++ b/base/values.h @@ -401,10 +401,6 @@ class ListValue : public Value { // Appends a Value to the end of the list. void Append(Value* in_value); - // Appends a Value if it's not already present. - // Returns true if successful, or false if the value was already present. - bool AppendIfNotPresent(Value* in_value); - // Insert a Value at index. // Returns true if successful, or false if the index was out of range. bool Insert(size_t index, Value* in_value); |