From d7988152722cd5f3930064a139b567cbcb0e5f53 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 31 Dec 2010 01:48:02 -0800 Subject: 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. --- src/glsl/s_expression.cpp | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/glsl/s_expression.cpp') diff --git a/src/glsl/s_expression.cpp b/src/glsl/s_expression.cpp index a00bfa73ed..852a049d43 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) { -- cgit v1.2.3