mesa: remove unused function _mesa_get_dispatch
authorMarek Olšák <marek.olsak@amd.com>
Wed, 10 Aug 2022 05:06:40 +0000 (01:06 -0400)
committerMarge Bot <emma+marge@anholt.net>
Mon, 26 Sep 2022 22:58:16 +0000 (22:58 +0000)
just use CurrentClientDispatch directly

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18828>

src/mesa/main/context.c
src/mesa/main/context.h

index c8b17b7..42128bf 100644 (file)
@@ -1603,25 +1603,6 @@ _mesa_get_current_context( void )
    return (struct gl_context *) _glapi_get_context();
 }
 
-
-/**
- * Get context's current API dispatch table.
- *
- * It'll either be the immediate-mode execute dispatcher, the display list
- * compile dispatcher, or the thread marshalling dispatcher.
- *
- * \param ctx GL context.
- *
- * \return pointer to dispatch_table.
- *
- * Simply returns __struct gl_contextRec::CurrentClientDispatch.
- */
-struct _glapi_table *
-_mesa_get_dispatch(struct gl_context *ctx)
-{
-   return ctx->CurrentClientDispatch;
-}
-
 /*@}*/
 
 
index eb52f75..6296217 100644 (file)
@@ -111,9 +111,6 @@ _mesa_get_current_context(void);
 extern void
 _mesa_init_constants(struct gl_constants *consts, gl_api api);
 
-extern struct _glapi_table *
-_mesa_get_dispatch(struct gl_context *ctx);
-
 extern void
 _mesa_set_context_lost_dispatch(struct gl_context *ctx);