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);