[Mesa-dev] [PATCH 04/13] glsl: Remove unused private fields

Matt Turner mattst88 at gmail.com
Thu Aug 10 22:02:35 UTC 2017


---
 src/compiler/glsl/lower_int64.cpp | 4 +---
 src/mesa/program/ir_to_mesa.cpp   | 3 +--
 2 files changed, 2 insertions(+), 5 deletions(-)

diff --git a/src/compiler/glsl/lower_int64.cpp b/src/compiler/glsl/lower_int64.cpp
index 9770d314af..aa2e1e063d 100644
--- a/src/compiler/glsl/lower_int64.cpp
+++ b/src/compiler/glsl/lower_int64.cpp
@@ -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;
 
diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp
index ac12b59d07..67a4ad4a7c 100644
--- a/src/mesa/program/ir_to_mesa.cpp
+++ b/src/mesa/program/ir_to_mesa.cpp
@@ -2410,7 +2410,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 */
    }
@@ -2429,7 +2429,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;
-- 
2.13.0



More information about the mesa-dev mailing list