glsl: compile unused function out
authorEric Engestrom <eric.engestrom@imgtec.com>
Tue, 12 Sep 2017 14:58:28 +0000 (15:58 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Wed, 13 Sep 2017 10:22:27 +0000 (11:22 +0100)
commit2f6ffab1ce740fa39a3472f59ba95d0d50cfd151
tree110cdf00c7f12e515a3a8d2976283bf4bee7a39f
parentc0b81af0dcde4536dcf57ce24db3e0aa7187be4e
glsl: compile unused function out

The function is only called from one place, which is hidden behind
the same `#ifdef DEBUG`.

Fixes: ca73c3358c91434e68ab "glsl: Mark functions static"
Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/compiler/glsl/ir_validate.cpp