[Piglit] [PATCH 6/9] Drop piglit_get_all_proc_addresses().

Eric Anholt eric at anholt.net
Tue Jan 28 18:52:58 PST 2014


Now that we've got epoxy, it's not used any more and we don't expect
to need things like it in the future.
---
 tests/util/piglit-glx-util.c | 26 --------------------------
 tests/util/piglit-glx-util.h |  5 -----
 2 files changed, 31 deletions(-)

diff --git a/tests/util/piglit-glx-util.c b/tests/util/piglit-glx-util.c
index 3805618..bbd35fc 100644
--- a/tests/util/piglit-glx-util.c
+++ b/tests/util/piglit-glx-util.c
@@ -460,32 +460,6 @@ piglit_glx_error_string(int err)
 	}
 }
 
-/**
- * Get the procedure adddresses for a group of function names
- *
- * \note
- * If any call to \c glXGetProcAddress fails, this function will call
- * \c piglit_report_result with \c PIGLIT_FAIL.
- */
-void
-piglit_glx_get_all_proc_addresses(__GLXextFuncPtr **procedures,
-				  const char *const *names,
-				  unsigned num)
-{
-	unsigned i;
-
-	for (i = 0; i < num; i++) {
-		*(procedures[i]) =
-			glXGetProcAddress((const GLubyte *) names[i]);
-		if (procedures[i] == NULL) {
-			fprintf(stderr,
-				"Failed to get function pointer for %s.\n",
-				names[i]);
-			piglit_report_result(PIGLIT_FAIL);
-		}
-	}
-}
-
 /* Creates a GLX context for rendering into an FBO */
 void
 piglit_framework_fbo_init_glx()
diff --git a/tests/util/piglit-glx-util.h b/tests/util/piglit-glx-util.h
index 07481d4..a54f55a 100644
--- a/tests/util/piglit-glx-util.h
+++ b/tests/util/piglit-glx-util.h
@@ -64,8 +64,3 @@ piglit_glx_get_error(Display *dpy, XErrorEvent *err);
 
 const char *
 piglit_glx_error_string(int err);
-
-void
-piglit_glx_get_all_proc_addresses(__GLXextFuncPtr **procedures,
-				  const char *const *names,
-				  unsigned num);
-- 
1.8.5.3



More information about the Piglit mailing list