diff options
author | Samuel Pitoiset <[email protected]> | 2017-04-11 14:34:22 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-04-13 10:05:59 +0200 |
commit | c53a120a4646f893113cf1b001124849d6c586d2 (patch) | |
tree | 25dd91c3722c1129e9a0070daa6c87770a0c6b5d /src/gallium/auxiliary/draw | |
parent | 4dfe38aa9c507ce0da6b36fdfe3277a6f732ed38 (diff) |
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 <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_pipe_wide_line.c | 11 |
1 files changed, 0 insertions, 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 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; |