diff options
author | Ian Romanick <[email protected]> | 2016-11-09 12:45:39 -0800 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2016-11-10 10:57:46 -0800 |
commit | cbba5e13acc2052349f7e2d304e6dddf31fb199a (patch) | |
tree | 194af81158d1894db75156e6b9116c4551827d18 /src/compiler/glsl/linker.h | |
parent | b359f62456211c2162109064cb504ad7de2ee799 (diff) |
linker: Remove unnecessary overload of program_resource_visitor::visit_field
It looks like I added this version as a short-hand for users that didn't
need the fuller version. I don't think there's any real utility in
that. I'm not sure what my thinking was there. Maybe if those users
overloaded the recursion function could just call the compact version to
avoid passing some parameters? None of the users do that.
Either way, having this extra overload is not useful. Delete it.
Signed-off-by: Ian Romanick <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/compiler/glsl/linker.h')
-rw-r--r-- | src/compiler/glsl/linker.h | 14 |
1 files changed, 1 insertions, 13 deletions
diff --git a/src/compiler/glsl/linker.h b/src/compiler/glsl/linker.h index 420abf97fce..d30aeda4f65 100644 --- a/src/compiler/glsl/linker.h +++ b/src/compiler/glsl/linker.h @@ -145,23 +145,11 @@ protected: * \param last_field Set if \c name is the last field of the structure * containing it. This will always be false for items * not contained in a structure or interface block. - * - * The default implementation just calls the other \c visit_field method. */ virtual void visit_field(const glsl_type *type, const char *name, bool row_major, const glsl_type *record_type, const enum glsl_interface_packing packing, - bool last_field); - - /** - * Method invoked for each leaf of the variable - * - * \param type Type of the field. - * \param name Fully qualified name of the field. - * \param row_major For a matrix type, is it stored row-major. - */ - virtual void visit_field(const glsl_type *type, const char *name, - bool row_major) = 0; + bool last_field) = 0; /** * Visit a record before visiting its fields |