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:
committed by
Emil Velikov
parent
9b7fd4080a
commit
79835565c3
@@ -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.
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user