glsl: Remove unused private fields
authorMatt Turner <mattst88@gmail.com>
Fri, 7 Jul 2017 01:45:14 +0000 (18:45 -0700)
committerMatt Turner <mattst88@gmail.com>
Mon, 21 Aug 2017 21:45:44 +0000 (14:45 -0700)
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/compiler/glsl/lower_int64.cpp
src/mesa/program/ir_to_mesa.cpp

index b6bf9cee7d3c65b10af65facb50770d1402c1184..2d4fdbb1a55feee62aeae7e5f966e1c715282882 100644 (file)
@@ -69,7 +69,7 @@ namespace {
 class lower_64bit_visitor : public ir_rvalue_visitor {
 public:
    lower_64bit_visitor(void *mem_ctx, exec_list *instructions, unsigned lower)
-      : progress(false), lower(lower), instructions(instructions),
+      : progress(false), lower(lower),
         function_list(), added_functions(&function_list, mem_ctx)
    {
       functions = _mesa_hash_table_create(mem_ctx,
@@ -111,8 +111,6 @@ public:
 private:
    unsigned lower; /** Bitfield of which operations to lower */
 
-   exec_list *instructions;
-
    /** Hashtable containing all of the known functions in the IR */
    struct hash_table *functions;
 
index 0e6a95ce990c17d4c76ef4826765b93ffd4c43fc..7499343a9a3f94892ca09f1ae66f291f618f8c7b 100644 (file)
@@ -2418,7 +2418,7 @@ class add_uniform_to_shader : public program_resource_visitor {
 public:
    add_uniform_to_shader(struct gl_shader_program *shader_program,
                         struct gl_program_parameter_list *params)
-      : shader_program(shader_program), params(params), idx(-1)
+      : params(params), idx(-1)
    {
       /* empty */
    }
@@ -2437,7 +2437,6 @@ private:
                             const enum glsl_interface_packing packing,
                             bool last_field);
 
-   struct gl_shader_program *shader_program;
    struct gl_program_parameter_list *params;
    int idx;
    ir_variable *var;