Entities: There is no spoon^H^H^H^H^Huda entity

- The code was trying to canonicalize 'attribute' and 'uda' separately,
  but there are no 'uda' entities.
This commit is contained in:
Paul Beckingham 2015-07-15 19:40:13 -04:00
parent 264dae02bc
commit b92802c2fb
2 changed files with 3 additions and 6 deletions

View file

@ -923,8 +923,7 @@ void CLI2::canonicalizeNames ()
std::string name = a.attribute ("name");
std::string canonical;
if (canonicalize (canonical, "pseudo", name) ||
canonicalize (canonical, "attribute", name) ||
canonicalize (canonical, "uda", name))
canonicalize (canonical, "attribute", name))
{
a.attribute ("canonical", canonical);
}
@ -1116,8 +1115,7 @@ void CLI2::desugarFilterAttributes ()
reconstructed.push_back (lhs);
found = true;
}
else if (canonicalize (canonical, "attribute", name) ||
canonicalize (canonical, "uda", name))
else if (canonicalize (canonical, "attribute", name))
{
// Certain attribute types do not suport math.
// string --> no