glx: remove __glXstrdup()

I didn't find this being used anywhere

Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
Juha-Pekka Heikkila 2014-12-16 12:28:47 +02:00 committed by Abdiel Janulgue
parent 096b48b3e1
commit 5d431ffd61
2 changed files with 0 additions and 20 deletions

View File

@ -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[];

View File

@ -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
*/