From 482db91c457284bdaee248d9ec03530d51208895 Mon Sep 17 00:00:00 2001 From: Pierre-Eric Pelloux-Prayer Date: Fri, 18 Jun 2021 15:11:54 +0200 Subject: [PATCH] dlist: remove unused _mesa_dlist_alloc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/mesa/main/dlist.c | 21 --------------------- src/mesa/main/dlist.h | 3 --- 2 files changed, 24 deletions(-) diff --git a/src/mesa/main/dlist.c b/src/mesa/main/dlist.c index 291018c403f..5bd7bfd72c3 100644 --- a/src/mesa/main/dlist.c +++ b/src/mesa/main/dlist.c @@ -1619,27 +1619,6 @@ dlist_alloc(struct gl_context *ctx, OpCode opcode, GLuint bytes, bool align8) } - -/** - * Allocate space for a display list instruction. Used by callers outside - * this file for things like VBO vertex data. - * - * \param opcode the instruction opcode (OPCODE_* value) - * \param bytes instruction size in bytes, not counting opcode. - * \return pointer to the usable data area (not including the internal - * opcode). - */ -void * -_mesa_dlist_alloc(struct gl_context *ctx, GLuint opcode, GLuint bytes) -{ - Node *n = dlist_alloc(ctx, (OpCode) opcode, bytes, false); - if (n) - return n + 1; /* return pointer to payload area, after opcode */ - else - return NULL; -} - - void * _mesa_dlist_alloc_vertex_list(struct gl_context *ctx, bool copy_to_current) { diff --git a/src/mesa/main/dlist.h b/src/mesa/main/dlist.h index c84e9bbd8ac..6a7d418b4ca 100644 --- a/src/mesa/main/dlist.h +++ b/src/mesa/main/dlist.h @@ -105,9 +105,6 @@ _mesa_lookup_list(struct gl_context *ctx, GLuint list, bool locked); void _mesa_compile_error(struct gl_context *ctx, GLenum error, const char *s); -void * -_mesa_dlist_alloc(struct gl_context *ctx, GLuint opcode, GLuint sz); - void * _mesa_dlist_alloc_vertex_list(struct gl_context *ctx, bool copy_to_current);