From c53a120a4646f893113cf1b001124849d6c586d2 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 11 Apr 2017 14:34:22 +0200 Subject: draw: remove unused wideline_stage() 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 Reviewed-by: Roland Scheidegger --- src/gallium/auxiliary/draw/draw_pipe_wide_line.c | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'src') diff --git a/src/gallium/auxiliary/draw/draw_pipe_wide_line.c b/src/gallium/auxiliary/draw/draw_pipe_wide_line.c index ae4a00eb630..cdcc43a13d8 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_wide_line.c +++ b/src/gallium/auxiliary/draw/draw_pipe_wide_line.c @@ -39,26 +39,15 @@ 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; -- cgit v1.2.3