[Mesa-dev] [PATCH 02/15] mesa: remove unused function _mesa_map_static_functions()

Emil Velikov emil.l.velikov at gmail.com
Tue Jun 7 16:33:35 UTC 2016


From: Emil Velikov <emil.velikov at collabora.com>

Unused as of commit 5a175127f38 ("dri: Remove all extension enabling
utility functions")

Cc: Ian Romanick <ian.d.romanick at intel.com>
Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/mesa/main/remap.c | 20 --------------------
 src/mesa/main/remap.h |  3 ---
 2 files changed, 23 deletions(-)

diff --git a/src/mesa/main/remap.c b/src/mesa/main/remap.c
index 5a95387..7c34026 100644
--- a/src/mesa/main/remap.c
+++ b/src/mesa/main/remap.c
@@ -155,26 +155,6 @@ _mesa_map_function_array(const struct gl_function_remap *func_array)
 
 
 /**
- * Map the functions which are already static.
- *
- * When a extension function are incorporated into the ABI, the
- * extension suffix is usually stripped.  Mapping such functions
- * makes sure the alternative names are available.
- *
- * Note that functions mapped by _mesa_init_remap_table() are
- * excluded.
- */
-void
-_mesa_map_static_functions(void)
-{
-   /* Remap static functions which have alternative names and are in the ABI.
-    * This is to be on the safe side.  glapi should have defined those names.
-    */
-   _mesa_map_function_array(MESA_alt_functions);
-}
-
-
-/**
  * Initialize the remap table.  This is called in one_time_init().
  * The remap table needs to be initialized before calling the
  * CALL/GET/SET macros defined in main/dispatch.h.
diff --git a/src/mesa/main/remap.h b/src/mesa/main/remap.h
index 9d91b83..3d8eab7 100644
--- a/src/mesa/main/remap.h
+++ b/src/mesa/main/remap.h
@@ -51,9 +51,6 @@ extern void
 _mesa_map_function_array(const struct gl_function_remap *func_array);
 
 extern void
-_mesa_map_static_functions(void);
-
-extern void
 _mesa_init_remap_table(void);
 
 
-- 
2.8.2



More information about the mesa-dev mailing list