From: Samuel Pitoiset Date: Tue, 11 Apr 2017 12:10:09 +0000 (+0200) Subject: draw: remove unused overflow() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4dfe38aa9c507ce0da6b36fdfe3277a6f732ed38;p=mesa.git draw: remove unused overflow() Fixes the following Clang warning. draw/draw_pipe_vbuf.c:102:1: warning: unused function 'overflow' [-Wunused-function] overflow( void *map, void *ptr, unsigned bytes, unsigned bufsz ) ^ 1 warning generated. Signed-off-by: Samuel Pitoiset Reviewed-by: Roland Scheidegger Reviewed-by: Brian Paul --- diff --git a/src/gallium/auxiliary/draw/draw_pipe_vbuf.c b/src/gallium/auxiliary/draw/draw_pipe_vbuf.c index 6df7149b531..f26063d1fea 100644 --- a/src/gallium/auxiliary/draw/draw_pipe_vbuf.c +++ b/src/gallium/auxiliary/draw/draw_pipe_vbuf.c @@ -98,14 +98,6 @@ static void vbuf_flush_vertices( struct vbuf_stage *vbuf ); static void vbuf_alloc_vertices( struct vbuf_stage *vbuf ); -static inline boolean -overflow( void *map, void *ptr, unsigned bytes, unsigned bufsz ) -{ - unsigned long used = (unsigned long) ((char *)ptr - (char *)map); - return (used + bytes) > bufsz; -} - - static inline void check_space( struct vbuf_stage *vbuf, unsigned nr ) {