[Mesa-dev] [PATCH 09/15] softpipe: remove unused quad_shade_stage()

Samuel Pitoiset samuel.pitoiset at gmail.com
Tue Apr 11 17:58:40 UTC 2017


Fixes the following Clang warning.

sp_quad_fs.c:60:1: warning: unused function 'quad_shade_stage' [-Wunused-function]
quad_shade_stage(struct quad_stage *qs)
^
1 warning generated.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
---
 src/gallium/drivers/softpipe/sp_quad_fs.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/gallium/drivers/softpipe/sp_quad_fs.c b/src/gallium/drivers/softpipe/sp_quad_fs.c
index 8fb632d9dc..26e7434edc 100644
--- a/src/gallium/drivers/softpipe/sp_quad_fs.c
+++ b/src/gallium/drivers/softpipe/sp_quad_fs.c
@@ -55,14 +55,6 @@ struct quad_shade_stage
 };
 
 
-/** cast wrapper */
-static inline struct quad_shade_stage *
-quad_shade_stage(struct quad_stage *qs)
-{
-   return (struct quad_shade_stage *) qs;
-}
-
-
 /**
  * Execute fragment shader for the four fragments in the quad.
  * \return TRUE if quad is alive, FALSE if all four pixels are killed
-- 
2.12.2



More information about the mesa-dev mailing list