[Mesa-dev] [PATCH 06/15] draw: remove unused wideline_stage()

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


Fixes the following Clang warning.

draw/draw_pipe_wide_line.c:48:38: warning: unused function 'wideline_stage' [-Wunused-function]
static inline struct wideline_stage *wideline_stage( struct draw_stage *stage )
                                     ^
1 warning generated.

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

diff --git a/src/gallium/auxiliary/draw/draw_pipe_wide_line.c b/src/gallium/auxiliary/draw/draw_pipe_wide_line.c
index ae4a00eb63..4232a4a17c 100644
--- a/src/gallium/auxiliary/draw/draw_pipe_wide_line.c
+++ b/src/gallium/auxiliary/draw/draw_pipe_wide_line.c
@@ -44,14 +44,6 @@ struct wideline_stage {
 };
 
 
-
-static inline struct wideline_stage *wideline_stage( struct draw_stage *stage )
-{
-   return (struct wideline_stage *)stage;
-}
-
-
-
 /**
  * Draw a wide line by drawing a quad (two triangles).
  */
-- 
2.12.2



More information about the mesa-dev mailing list