Mesa (master): glx: remove __glXstrdup()
Abdiel Janulgue
abj at kemper.freedesktop.org
Tue Dec 16 11:51:46 UTC 2014
Module: Mesa
Branch: master
Commit: 5d431ffd612ce9cf41218c6239335ea2c9ff4b2b
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5d431ffd612ce9cf41218c6239335ea2c9ff4b2b
Author: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Date: Tue Dec 16 12:28:47 2014 +0200
glx: remove __glXstrdup()
I didn't find this being used anywhere
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
Reviewed-by: Matt Turner <mattst88 at gmail.com>
---
src/glx/glxclient.h | 3 ---
src/glx/glxcmds.c | 17 -----------------
2 files changed, 20 deletions(-)
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h
index 74c19c4..aaca989 100644
--- a/src/glx/glxclient.h
+++ b/src/glx/glxclient.h
@@ -767,9 +767,6 @@ extern char *__glXQueryServerString(Display * dpy, int opcode,
extern char *__glXGetString(Display * dpy, int opcode,
CARD32 screen, CARD32 name);
-extern char *__glXstrdup(const char *str);
-
-
extern const char __glXGLClientVersion[];
extern const char __glXGLClientExtensions[];
diff --git a/src/glx/glxcmds.c b/src/glx/glxcmds.c
index 04d8db1..f4f476e 100644
--- a/src/glx/glxcmds.c
+++ b/src/glx/glxcmds.c
@@ -2428,23 +2428,6 @@ __glXReleaseTexImageEXT(Display * dpy, GLXDrawable drawable, int buffer)
#endif /* GLX_USE_APPLEGL */
-/**
- * \c strdup is actually not a standard ANSI C or POSIX routine.
- * Irix will not define it if ANSI mode is in effect.
- *
- * \sa strdup
- */
-_X_HIDDEN char *
-__glXstrdup(const char *str)
-{
- char *copy;
- copy = malloc(strlen(str) + 1);
- if (!copy)
- return NULL;
- strcpy(copy, str);
- return copy;
-}
-
/*
** glXGetProcAddress support
*/
More information about the mesa-commit
mailing list