diff options
author | Kenneth Graunke <[email protected]> | 2010-12-31 01:48:02 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-01-12 23:55:33 -0800 |
commit | d7988152722cd5f3930064a139b567cbcb0e5f53 (patch) | |
tree | b17b82ce389b74e347bef5c8c43d619bdbcf5f12 /src/glsl/s_expression.cpp | |
parent | daeb0c646e0d652bfa16d326028753ecf092c0c9 (diff) |
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.
Diffstat (limited to 'src/glsl/s_expression.cpp')
-rw-r--r-- | src/glsl/s_expression.cpp | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/src/glsl/s_expression.cpp b/src/glsl/s_expression.cpp index a00bfa73ed1..852a049d43f 100644 --- a/src/glsl/s_expression.cpp +++ b/src/glsl/s_expression.cpp @@ -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) { |