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:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user