From: Samuel Pitoiset Date: Tue, 11 Apr 2017 12:42:39 +0000 (+0200) Subject: softpipe: remove unused sp_exec_fragment_shader() X-Git-Tag: upstream/17.1.0~229 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=12647533fa7136530c55018a147c859663c54e21;p=platform%2Fupstream%2Fmesa.git softpipe: remove unused sp_exec_fragment_shader() Fixes the following Clang warning. sp_fs_exec.c:56:1: warning: unused function 'sp_exec_fragment_shader' [-Wunused-function] sp_exec_fragment_shader(const struct sp_fragment_shader_variant *var) ^ 1 warning generated. Signed-off-by: Samuel Pitoiset Reviewed-by: Brian Paul --- diff --git a/src/gallium/drivers/softpipe/sp_fs_exec.c b/src/gallium/drivers/softpipe/sp_fs_exec.c index f1662bf..cb22850 100644 --- a/src/gallium/drivers/softpipe/sp_fs_exec.c +++ b/src/gallium/drivers/softpipe/sp_fs_exec.c @@ -51,14 +51,6 @@ struct sp_exec_fragment_shader }; -/** cast wrapper */ -static inline struct sp_exec_fragment_shader * -sp_exec_fragment_shader(const struct sp_fragment_shader_variant *var) -{ - return (struct sp_exec_fragment_shader *) var; -} - - static void exec_prepare( const struct sp_fragment_shader_variant *var, struct tgsi_exec_machine *machine,