diff options
author | jbroman@chromium.org <jbroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-11 17:51:08 +0000 |
---|---|---|
committer | jbroman@chromium.org <jbroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-08-11 17:51:08 +0000 |
commit | a18ca2d76a9e6ea7a52ed3aa10e1aaaf8e50f195 (patch) | |
tree | 984bd2ee1b683348725105e9b66acbc4cf1499cf /tools | |
parent | 9657f90256122881983b0cc2dea39092d984c97c (diff) | |
download | chromium_src-a18ca2d76a9e6ea7a52ed3aa10e1aaaf8e50f195.zip chromium_src-a18ca2d76a9e6ea7a52ed3aa10e1aaaf8e50f195.tar.gz chromium_src-a18ca2d76a9e6ea7a52ed3aa10e1aaaf8e50f195.tar.bz2 |
GN: Remove Value::RecursivelySetOrigin.
This method has been unused for about four months:
https://codereview.chromium.org/223783005/
It is probably worthwhile to remove it, since it's dead and untested.
Review URL: https://codereview.chromium.org/445393004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288744 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'tools')
-rw-r--r-- | tools/gn/value.cc | 8 | ||||
-rw-r--r-- | tools/gn/value.h | 4 |
2 files changed, 0 insertions, 12 deletions
diff --git a/tools/gn/value.cc b/tools/gn/value.cc index df072fb..0c1f461 100644 --- a/tools/gn/value.cc +++ b/tools/gn/value.cc @@ -88,14 +88,6 @@ Value& Value::operator=(const Value& other) { return *this; } -void Value::RecursivelySetOrigin(const ParseNode* origin) { - set_origin(origin); - if (type_ == Value::LIST) { - for (size_t i = 0; i < list_value_.size(); i++) - list_value_[i].RecursivelySetOrigin(origin); - } -} - // static const char* Value::DescribeType(Type t) { switch (t) { diff --git a/tools/gn/value.h b/tools/gn/value.h index 87a2941..00e1f7a 100644 --- a/tools/gn/value.h +++ b/tools/gn/value.h @@ -55,10 +55,6 @@ class Value { const ParseNode* origin() const { return origin_; } void set_origin(const ParseNode* o) { origin_ = o; } - // Sets the origin of this value, recursively going into list child - // values and also setting their origins. - void RecursivelySetOrigin(const ParseNode* o); - bool& boolean_value() { DCHECK(type_ == BOOLEAN); return boolean_value_; |