mapi/glapi: remove unused _glapi_check_table_not_null

Function was never part of the API/ABI and the final user was removed
with commit a73c6540d9, back in 2010.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
Emil Velikov
2016-08-25 16:58:58 +01:00
committed by Emil Velikov
parent 9b7fd4080a
commit 79835565c3
2 changed files with 0 additions and 24 deletions
-20
View File
@@ -582,26 +582,6 @@ _glapi_get_dispatch_table_size(void)
}
/**
* Make sure there are no NULL pointers in the given dispatch table.
* Intended for debugging purposes.
*/
void
_glapi_check_table_not_null(const struct _glapi_table *table)
{
#ifdef EXTRA_DEBUG /* set to DEBUG for extra DEBUG */
const GLuint entries = _glapi_get_dispatch_table_size();
const void **tab = (const void **) table;
GLuint i;
for (i = 1; i < entries; i++) {
assert(tab[i]);
}
#else
(void) table;
#endif
}
/**
* Do some spot checks to be sure that the dispatch table
* slots are assigned correctly. For debugging only.
-4
View File
@@ -55,10 +55,6 @@ extern "C" {
/* getproc */
extern void
_glapi_check_table_not_null(const struct _glapi_table *table);
extern void
_glapi_check_table(const struct _glapi_table *table);