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:
parent
096b48b3e1
commit
5d431ffd61
|
@ -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[];
|
||||
|
||||
|
|
|
@ -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
|
||||
*/
|
||||
|
|
Loading…
Reference in New Issue