summaryrefslogtreecommitdiffstats
path: root/base/values.h
diff options
context:
space:
mode:
Diffstat (limited to 'base/values.h')
-rw-r--r--base/values.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/base/values.h b/base/values.h
index fa5b1017..cd68b10 100644
--- a/base/values.h
+++ b/base/values.h
@@ -334,6 +334,9 @@ class ListValue : public Value {
// it will return false and the ListValue object will be unchanged.
bool Remove(size_t index, Value** out_value);
+ // Removes the first instance of |value| found in the list, if any.
+ void Remove(const Value& value);
+
// Appends a Value to the end of the list.
void Append(Value* in_value);
@@ -347,10 +350,6 @@ class ListValue : public Value {
ListValue::const_iterator begin() const { return list_.begin(); }
ListValue::const_iterator end() const { return list_.end(); }
- ListValue::iterator Erase(iterator item) {
- return list_.erase(item);
- }
-
private:
DISALLOW_EVIL_CONSTRUCTORS(ListValue);