glx: Remove unused _glapi_get_proc_name
Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
This commit is contained in:
parent
4377288abd
commit
b73ebe65cd
49
glx/glapi.c
49
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).
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user