Mesa (master): draw: remove unused overflow()

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Thu Apr 13 08:06:57 UTC 2017


Module: Mesa
Branch: master
Commit: 4dfe38aa9c507ce0da6b36fdfe3277a6f732ed38
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=4dfe38aa9c507ce0da6b36fdfe3277a6f732ed38

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Tue Apr 11 14:10:09 2017 +0200

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 <samuel.pitoiset at gmail.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Reviewed-by: Brian Paul <brianp at vmware.com>

---

 src/gallium/auxiliary/draw/draw_pipe_vbuf.c | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/src/gallium/auxiliary/draw/draw_pipe_vbuf.c b/src/gallium/auxiliary/draw/draw_pipe_vbuf.c
index 6df7149b53..f26063d1fe 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 )
 {




More information about the mesa-commit mailing list