summaryrefslogtreecommitdiff
path: root/glx/glapi.c
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2011-03-02 12:12:35 -0500
committerAdam Jackson <ajax@redhat.com>2011-03-08 13:25:15 -0500
commitb73ebe65cd071a063417ac9c38513a6742e32428 (patch)
tree3c608415167053bb7e5929564245c1383b6a37a8 /glx/glapi.c
parent4377288abdbaac8506d8643b440c300ba03182fe (diff)
glx: Remove unused _glapi_get_proc_name
Reviewed-by: Julien Cristau <jcristau@debian.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glx/glapi.c')
-rw-r--r--glx/glapi.c49
1 files changed, 0 insertions, 49 deletions
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).