From: Kristian Høgsberg Date: Thu, 17 May 2007 19:33:14 +0000 (-0400) Subject: Remove now unused getProcAddress from DRIinterfaceMethods. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=594006d8b2960b9e49b57c02682289ae900ffc71;p=mesa.git Remove now unused getProcAddress from DRIinterfaceMethods. --- diff --git a/include/GL/internal/dri_interface.h b/include/GL/internal/dri_interface.h index cce3b6fcf02..657e3828cca 100644 --- a/include/GL/internal/dri_interface.h +++ b/include/GL/internal/dri_interface.h @@ -169,39 +169,6 @@ struct __DRImediaStreamCounterExtensionRec { }; -/** - * \name Functions provided by the driver loader. - */ -/*@{*/ -/** - * Type of a pointer to \c glXGetScreenDriver, as returned by - * \c glXGetProcAddress. This function is used to get the name of the DRI - * driver for the specified screen of the specified display. The driver - * name is typically used with \c glXGetDriverConfig. - * - * \sa glXGetScreenDriver, glXGetProcAddress, glXGetDriverConfig - */ -typedef const char * (* PFNGLXGETSCREENDRIVERPROC) (__DRIscreen *screen); - -/** - * Type of a pointer to \c glXGetDriverConfig, as returned by - * \c glXGetProcAddress. This function is used to get the XML document - * describing the configuration options available for the specified driver. - * - * \sa glXGetDriverConfig, glXGetProcAddress, glXGetScreenDriver - */ -typedef const char * (* PFNGLXGETDRIVERCONFIGPROC) (const char *driverName); - -/** - * Type of a pointer to \c glxEnableExtension, as returned by - * \c __DRIinterfaceMethods::getProcAddress. This function is used to enable - * a GLX extension on the specified screen. - */ -typedef void (* PFNGLXSCRENABLEEXTENSIONPROC) (__DRIscreen *screen, - const char *name); -/*@}*/ - - /** * Macros for building symbol and strings. Standard CPP two step... */ @@ -263,11 +230,6 @@ struct __DRIversionRec { typedef void (*__DRIfuncPtr)(void); struct __DRIinterfaceMethodsRec { - /** - * Get pointer to named function. - */ - __DRIfuncPtr (*getProcAddress)( const char * proc_name ); - /** * Create a list of \c __GLcontextModes structures. */ diff --git a/src/glx/x11/glxext.c b/src/glx/x11/glxext.c index 3db163af1ee..580faec0d00 100644 --- a/src/glx/x11/glxext.c +++ b/src/glx/x11/glxext.c @@ -691,19 +691,6 @@ filter_modes( __GLcontextModes ** server_modes, return modes_count; } - -/** - * Implement \c __DRIinterfaceMethods::getProcAddress. - */ -static __DRIfuncPtr get_proc_address( const char * proc_name ) -{ - if (strcmp( proc_name, "glxEnableExtension" ) == 0) { - return (__DRIfuncPtr) __glXScrEnableExtension; - } - - return NULL; -} - #ifdef XDAMAGE_1_1_INTERFACE static GLboolean has_damage_post(Display *dpy) { @@ -798,8 +785,6 @@ __glXDRIGetDrawableInfo(__DRIdrawable *drawable, * Table of functions exported by the loader to the driver. */ static const __DRIinterfaceMethods interface_methods = { - get_proc_address, - _gl_context_modes_create, _gl_context_modes_destroy,