summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>2017-04-11 14:34:22 +0200
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>2017-04-13 10:05:59 +0200
commitc53a120a4646f893113cf1b001124849d6c586d2 (patch)
tree25dd91c3722c1129e9a0070daa6c87770a0c6b5d /src/gallium
parent4dfe38aa9c507ce0da6b36fdfe3277a6f732ed38 (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 <samuel.pitoiset@gmail.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/auxiliary/draw/draw_pipe_wide_line.c11
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 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;