summaryrefslogtreecommitdiffstats
path: root/src/glx
diff options
context:
space:
mode:
authorJuha-Pekka Heikkila <[email protected]>2014-12-16 12:28:47 +0200
committerAbdiel Janulgue <[email protected]>2014-12-16 13:50:53 +0200
commit5d431ffd612ce9cf41218c6239335ea2c9ff4b2b (patch)
tree292312df2dde4b44678e297d0d080ef6cc4b8372 /src/glx
parent096b48b3e1fcaf8ad44d90cba1cb9eeebba413ba (diff)
glx: remove __glXstrdup()
I didn't find this being used anywhere Signed-off-by: Juha-Pekka Heikkila <[email protected]> Reviewed-by: Matt Turner <[email protected]>
Diffstat (limited to 'src/glx')
-rw-r--r--src/glx/glxclient.h3
-rw-r--r--src/glx/glxcmds.c17
2 files changed, 0 insertions, 20 deletions
diff --git a/src/glx/glxclient.h b/src/glx/glxclient.h
index 74c19c48564..aaca989f1e3 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 04d8db16096..f4f476e10b0 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
*/