diff --git a/glx/glapi.c b/glx/glapi.c index fde5d76d7..209ae50c0 100644 --- a/glx/glapi.c +++ b/glx/glapi.c @@ -426,26 +426,6 @@ get_static_proc_address(const char *funcName) #endif /* !defined(XFree86Server) && !defined(XGLServer) */ - - -/** - * Return the name of the function at the given offset in the dispatch - * table. For debugging only. - */ -static const char * -get_static_proc_name( GLuint offset ) -{ - GLuint i; - for (i = 0; static_functions[i].Name_offset >= 0; i++) { - if (static_functions[i].Offset == offset) { - return gl_string_table + static_functions[i].Name_offset; - } - } - return NULL; -} - - - /********************************************************************** * Extension function management. */ @@ -860,35 +840,6 @@ _glapi_get_proc_address(const char *funcName) return (entry == NULL) ? NULL : entry->dispatch_stub; } - - -/** - * Return the name of the function at the given dispatch offset. - * This is only intended for debugging. - */ -const char * -_glapi_get_proc_name(GLuint offset) -{ - GLuint i; - const char * n; - - /* search built-in functions */ - n = get_static_proc_name(offset); - if ( n != NULL ) { - return n; - } - - /* search added extension functions */ - for (i = 0; i < NumExtEntryPoints; i++) { - if (ExtEntryTable[i].dispatch_offset == offset) { - return ExtEntryTable[i].name; - } - } - return NULL; -} - - - /** * Return size of dispatch table struct as number of functions (or * slots). diff --git a/glx/glapi.h b/glx/glapi.h index 9911e50f0..80b53aa92 100644 --- a/glx/glapi.h +++ b/glx/glapi.h @@ -146,7 +146,4 @@ _glapi_add_dispatch( const char * const * function_names, extern _glapi_proc _glapi_get_proc_address(const char *funcName); -extern const char * -_glapi_get_proc_name(GLuint offset); - #endif