draw: remove unused wideline_stage()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 11 Apr 2017 12:34:22 +0000 (14:34 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Apr 2017 08:05:59 +0000 (10:05 +0200)
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.

v2: - remove commented code (Roland Scheidegger)
v3: - remove half_line_width in the struct

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/draw/draw_pipe_wide_line.c

index ae4a00eb630175ab055f425b7545b699d5061a52..cdcc43a13d8213006a428a6b1979e2a2a083d5c6 100644 (file)
 
 struct wideline_stage {
    struct draw_stage stage;
-
-   float half_line_width;
 };
 
 
-
-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).
  */
 static void wideline_line( struct draw_stage *stage,
                            struct prim_header *header )
 {
-   /*const struct wideline_stage *wide = wideline_stage(stage);*/
    const unsigned pos = draw_current_shader_position_output(stage->draw);
    const float half_width = 0.5f * stage->draw->rasterizer->line_width;