* Remove some redundant tests.
This commit is contained in:
parent
02c1dac909
commit
497e4ad126
1 changed files with 3 additions and 3 deletions
|
@ -1013,13 +1013,13 @@ bool EvalState::eqValues(Value & v1, Value & v2)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case tList:
|
case tList:
|
||||||
if (v2.type != tList || v1.list.length != v2.list.length) return false;
|
if (v1.list.length != v2.list.length) return false;
|
||||||
for (unsigned int n = 0; n < v1.list.length; ++n)
|
for (unsigned int n = 0; n < v1.list.length; ++n)
|
||||||
if (!eqValues(*v1.list.elems[n], *v2.list.elems[n])) return false;
|
if (!eqValues(*v1.list.elems[n], *v2.list.elems[n])) return false;
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
case tAttrs: {
|
case tAttrs: {
|
||||||
if (v2.type != tAttrs || v1.attrs->size() != v2.attrs->size()) return false;
|
if (v1.attrs->size() != v2.attrs->size()) return false;
|
||||||
Bindings::iterator i, j;
|
Bindings::iterator i, j;
|
||||||
for (i = v1.attrs->begin(), j = v2.attrs->begin(); i != v1.attrs->end(); ++i, ++j)
|
for (i = v1.attrs->begin(), j = v2.attrs->begin(); i != v1.attrs->end(); ++i, ++j)
|
||||||
if (i->first != j->first || !eqValues(i->second, j->second)) return false;
|
if (i->first != j->first || !eqValues(i->second, j->second)) return false;
|
||||||
|
|
Loading…
Reference in a new issue