ir_reader: Remove s_list::length() method.

Most code now relies on the pattern matcher rather than this function,
and for the only remaining case, not using this saves an iteration.
This commit is contained in:
Kenneth Graunke
2010-12-31 01:48:02 -08:00
parent daeb0c646e
commit d798815272
3 changed files with 8 additions and 18 deletions

View File

@@ -38,16 +38,6 @@ s_list::s_list()
{
}
unsigned
s_list::length() const
{
unsigned i = 0;
foreach_iter(exec_list_iterator, it, this->subexpressions) {
i++;
}
return i;
}
static s_expression *
read_atom(void *ctx, const char *& src)
{