softpipe: remove unused sp_exec_fragment_shader()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 11 Apr 2017 12:42:39 +0000 (14:42 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Apr 2017 08:06:04 +0000 (10:06 +0200)
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 <samuel.pitoiset@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/drivers/softpipe/sp_fs_exec.c

index f1662bffdb51269e25a1a49f0dcd170f8373d278..cb22850496fcfa80b4243708457b4dff40015bae 100644 (file)
@@ -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,