mesa: remove unused _mesa_unmarshal_BindBufferBase()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 11 Apr 2017 12:01:51 +0000 (14:01 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Thu, 13 Apr 2017 07:58:19 +0000 (09:58 +0200)
Fixes the following Clang warning.

main/marshal.c:209:1: warning: unused function '_mesa_unmarshal_BindBufferBase' [-Wunused-function]
_mesa_unmarshal_BindBufferBase(struct gl_context *ctx, const struct marshal_cmd_BindBufferBase *cmd)
^
1 warning generated.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mesa/main/marshal.c

index ae32d25..ae4efb5 100644 (file)
@@ -205,14 +205,6 @@ struct marshal_cmd_BindBufferBase
    GLuint index;
    GLuint buffer;
 };
-static inline void
-_mesa_unmarshal_BindBufferBase(struct gl_context *ctx, const struct marshal_cmd_BindBufferBase *cmd)
-{
-   const GLenum target = cmd->target;
-   const GLuint index = cmd->index;
-   const GLuint buffer = cmd->buffer;
-   CALL_BindBufferBase(ctx->CurrentServerDispatch, (target, index, buffer));
-}
 
 /** Tracks the current bindings for the vertex array and index array buffers.
  *