From 031cb085cdf6e6ada85dc72f47b1998425c56773 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Tue, 31 Aug 2021 10:10:14 +0200 Subject: [PATCH] vbo/dlist: remove unused functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/mesa/vbo/vbo_save.h | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/mesa/vbo/vbo_save.h b/src/mesa/vbo/vbo_save.h index ce9bc4c73b8..89381a62a50 100644 --- a/src/mesa/vbo/vbo_save.h +++ b/src/mesa/vbo/vbo_save.h @@ -96,41 +96,6 @@ _vbo_save_get_stride(const struct vbo_save_vertex_list *node) } -/** - * Return the first referenced vertex index in the display list node. - */ -static inline GLuint -_vbo_save_get_min_index(const struct vbo_save_vertex_list *node) -{ - assert(node->cold->prim_count > 0); - return node->cold->min_index; -} - - -/** - * Return the last referenced vertex index in the display list node. - */ -static inline GLuint -_vbo_save_get_max_index(const struct vbo_save_vertex_list *node) -{ - assert(node->cold->prim_count > 0); - return node->cold->max_index; -} - - -/** - * Return the vertex count in the display list node. - */ -static inline GLuint -_vbo_save_get_vertex_count(const struct vbo_save_vertex_list *node) -{ - assert(node->cold->prim_count > 0); - const struct _mesa_prim *first_prim = &node->cold->prims[0]; - const struct _mesa_prim *last_prim = &node->cold->prims[node->cold->prim_count - 1]; - return last_prim->start - first_prim->start + last_prim->count; -} - - /* These buffers should be a reasonable size to support upload to * hardware. Current vbo implementation will re-upload on any * changes, so don't make too big or apps which dynamically create