Mesa (master): draw: remove unused wideline_stage()
Samuel Pitoiset
hakzsam at kemper.freedesktop.org
Thu Apr 13 08:06:57 UTC 2017
Module: Mesa
Branch: master
Commit: c53a120a4646f893113cf1b001124849d6c586d2
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=c53a120a4646f893113cf1b001124849d6c586d2
Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date: Tue Apr 11 14:34:22 2017 +0200
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 <samuel.pitoiset at gmail.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
---
src/gallium/auxiliary/draw/draw_pipe_wide_line.c | 11 -----------
1 file changed, 11 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..cdcc43a13d 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;
More information about the mesa-commit
mailing list