From: Ian Romanick Date: Fri, 28 Jun 2013 01:20:24 +0000 (-0700) Subject: mesa: Remove _mesa_{enable, disable}_extension and _mesa_extension_is_enabled X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=34e8905077b7a930457098ac0e0a5ea251e5944c;p=mesa.git mesa: Remove _mesa_{enable, disable}_extension and _mesa_extension_is_enabled They're not used anywhere. Signed-off-by: Ian Romanick Reviewed-by: Kenneth Graunke Reviewed-by: Brian Paul --- diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index a39c3e15e5d..8f96a77779a 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -494,51 +494,6 @@ set_extension( struct gl_context *ctx, const char *name, GLboolean state ) } } - -/** - * Enable the named extension. - * Typically called by drivers. - */ -void -_mesa_enable_extension( struct gl_context *ctx, const char *name ) -{ - if (!set_extension(ctx, name, GL_TRUE)) - _mesa_problem(ctx, "Trying to enable unknown extension: %s", name); -} - - -/** - * Disable the named extension. - * XXX is this really needed??? - */ -void -_mesa_disable_extension( struct gl_context *ctx, const char *name ) -{ - if (!set_extension(ctx, name, GL_FALSE)) - _mesa_problem(ctx, "Trying to disable unknown extension: %s", name); -} - - -/** - * Test if the named extension is enabled in this context. - */ -GLboolean -_mesa_extension_is_enabled( struct gl_context *ctx, const char *name ) -{ - size_t offset; - GLboolean *base; - - if (name == 0) - return GL_FALSE; - - offset = name_to_offset(name); - if (offset == 0) - return GL_FALSE; - base = (GLboolean *) &ctx->Extensions; - return base[offset]; -} - - /** * \brief Apply the \c MESA_EXTENSION_OVERRIDE environment variable. * diff --git a/src/mesa/main/extensions.h b/src/mesa/main/extensions.h index f421e201eff..a8cc2a41e75 100644 --- a/src/mesa/main/extensions.h +++ b/src/mesa/main/extensions.h @@ -42,12 +42,6 @@ struct gl_context; extern void _mesa_enable_sw_extensions(struct gl_context *ctx); -extern void _mesa_enable_extension(struct gl_context *ctx, const char *name); - -extern void _mesa_disable_extension(struct gl_context *ctx, const char *name); - -extern GLboolean _mesa_extension_is_enabled(struct gl_context *ctx, const char *name); - extern void _mesa_init_extensions(struct gl_context *ctx); extern GLubyte *_mesa_make_extension_string(struct gl_context *ctx);