summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Brenneman <kbrenneman@nvidia.com>2016-03-07 14:50:11 -0700
committerKyle Brenneman <kbrenneman@nvidia.com>2016-03-24 12:44:25 -0600
commit3c6d7d753c221210fb77ffaac5483c81f0b31bae (patch)
tree8c7f0353479094f0f92b3a68fd33bdbf59e964ef
parent3f4674f8f66bf9dfa897e182f7936c2ae47e3850 (diff)
GLX: Remove __glXFreeDisplay.
__glXFreeDisplay is defined but not used anywhere.
-rw-r--r--src/GLX/libglxmapping.c17
-rw-r--r--src/GLX/libglxmapping.h5
2 files changed, 0 insertions, 22 deletions
diff --git a/src/GLX/libglxmapping.c b/src/GLX/libglxmapping.c
index 48add91..c47bc30 100644
--- a/src/GLX/libglxmapping.c
+++ b/src/GLX/libglxmapping.c
@@ -790,23 +790,6 @@ __GLXdisplayInfo *__glXLookupDisplay(Display *dpy)
return &pEntry->info;
}
-void __glXFreeDisplay(Display *dpy)
-{
- __GLXdisplayInfoHash *pEntry = NULL;
-
- LKDHASH_WRLOCK(__glXDisplayInfoHash);
- HASH_FIND_PTR(_LH(__glXDisplayInfoHash), &dpy, pEntry);
- if (pEntry != NULL) {
- HASH_DEL(_LH(__glXDisplayInfoHash), pEntry);
- }
- LKDHASH_UNLOCK(__glXDisplayInfoHash);
-
- if (pEntry != NULL) {
- CleanupDisplayInfoEntry(NULL, pEntry);
- free(pEntry);
- }
-}
-
/****************************************************************************/
/*
* Define two hashtables to store the mappings for GLXFBConfig and GLXContext
diff --git a/src/GLX/libglxmapping.h b/src/GLX/libglxmapping.h
index 8ae8844..e4bcb1c 100644
--- a/src/GLX/libglxmapping.h
+++ b/src/GLX/libglxmapping.h
@@ -131,11 +131,6 @@ __GLXvendorInfo *__glXLookupVendorByScreen(Display *dpy, const int screen);
__GLXdisplayInfo *__glXLookupDisplay(Display *dpy);
/*!
- * Frees the __GLXdisplayInfo structure for a display, if one exists.
- */
-void __glXFreeDisplay(Display *dpy);
-
-/*!
* This is called to perform any context-related cleanup when a display is
* closed.
*/