Mesa (master): glsl2: Remove unused 'constructor' parameter from glsl_symbol_table::add_type

Kenneth Graunke kwg at kemper.freedesktop.org
Thu Sep 2 03:40:07 UTC 2010


Module: Mesa
Branch: master
Commit: 16d9ebb35771af2bc27024bb4b788ef6427a4f23
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=16d9ebb35771af2bc27024bb4b788ef6427a4f23

Author: Ian Romanick <ian.d.romanick at intel.com>
Date:   Wed Sep  1 14:10:39 2010 -0700

glsl2: Remove unused 'constructor' parameter from glsl_symbol_table::add_type

---

 src/glsl/glsl_symbol_table.cpp |    7 +++----
 src/glsl/glsl_symbol_table.h   |    3 +--
 2 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/src/glsl/glsl_symbol_table.cpp b/src/glsl/glsl_symbol_table.cpp
index c71f3f8..b56b087 100644
--- a/src/glsl/glsl_symbol_table.cpp
+++ b/src/glsl/glsl_symbol_table.cpp
@@ -46,7 +46,7 @@ public:
 
    symbol_table_entry(ir_variable *v)                     : v(v), f(0), t(0) {}
    symbol_table_entry(ir_function *f)                     : v(0), f(f), t(0) {}
-   symbol_table_entry(const glsl_type *t, ir_function *f) : v(0), f(f), t(t) {}
+   symbol_table_entry(const glsl_type *t)                 : v(0), f(0), t(t) {}
 
    ir_variable *v;
    ir_function *f;
@@ -115,10 +115,9 @@ bool glsl_symbol_table::add_variable(const char *name, ir_variable *v)
    return _mesa_symbol_table_add_symbol(table, -1, name, entry) == 0;
 }
 
-bool glsl_symbol_table::add_type(const char *name, const glsl_type *t,
-				 ir_function *constructor)
+bool glsl_symbol_table::add_type(const char *name, const glsl_type *t)
 {
-   symbol_table_entry *entry = new(mem_ctx) symbol_table_entry(t, constructor);
+   symbol_table_entry *entry = new(mem_ctx) symbol_table_entry(t);
    return _mesa_symbol_table_add_symbol(table, -1, name, entry) == 0;
 }
 
diff --git a/src/glsl/glsl_symbol_table.h b/src/glsl/glsl_symbol_table.h
index c90fdc3..f1369b5 100644
--- a/src/glsl/glsl_symbol_table.h
+++ b/src/glsl/glsl_symbol_table.h
@@ -98,8 +98,7 @@ public:
     */
    /*@{*/
    bool add_variable(const char *name, ir_variable *v);
-   bool add_type(const char *name, const glsl_type *t,
-	         ir_function *constructor = NULL);
+   bool add_type(const char *name, const glsl_type *t);
    bool add_function(const char *name, ir_function *f);
    /*@}*/
 




More information about the mesa-commit mailing list