From: Thomas Helland Date: Mon, 9 Jun 2014 22:57:37 +0000 (+0200) Subject: glsl: Remove unused include from glsl_symbol_table.h X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4f5445a45d3ed02e00a061b10c943c0b079c6020;p=mesa.git glsl: Remove unused include from glsl_symbol_table.h Only function-defs use glsl_type so forward declare instead. Compile-tested on my Ivy-bridge system. IWYU also suggests removing #include , and this compiles fine. I'm not familiar enough with memory management in C/C++ that I feel comfortable removing this. Insights would be appreciated. Reviewed-by: Tom Stellard Reviewed-by: Matt Turner Signed-off-by: Thomas Helland --- diff --git a/src/glsl/glsl_symbol_table.h b/src/glsl/glsl_symbol_table.h index f323fc305fa..39b84e4dd89 100644 --- a/src/glsl/glsl_symbol_table.h +++ b/src/glsl/glsl_symbol_table.h @@ -32,9 +32,9 @@ extern "C" { #include "program/symbol_table.h" } #include "ir.h" -#include "glsl_types.h" class symbol_table_entry; +class glsl_type; /** * Facade class for _mesa_symbol_table