From c968ddd21a83f64c5bbe26b1b3adbfcfd3d04ff7 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Sat, 12 Jan 2013 20:45:14 -0800 Subject: Remove unused uStringDup function Signed-off-by: Alan Coopersmith --- utils.c | 14 -------------- utils.h | 5 ----- 2 files changed, 19 deletions(-) diff --git a/utils.c b/utils.c index 3e045be..da8f510 100644 --- a/utils.c +++ b/utils.c @@ -199,20 +199,6 @@ uInternalError(const char *s, ...) /***====================================================================***/ -#ifndef HAVE_STRDUP -char * -uStringDup(const char *str) -{ - char *rtrn; - - if (str == NULL) - return NULL; - rtrn = (char *) uAlloc(strlen(str) + 1); - strcpy(rtrn, str); - return rtrn; -} -#endif - #ifndef HAVE_STRCASECMP int uStrCaseCmp(const char *str1, const char *str2) diff --git a/utils.h b/utils.h index 88f0d46..57aae1c 100644 --- a/utils.h +++ b/utils.h @@ -133,11 +133,6 @@ extern int uStrCaseCmp(const char * /* s1 */, extern int uStrCasePrefix(const char * /* p */, const char * /* str */); #endif -#ifdef HAVE_STRDUP -#define uStringDup(s1) (strdup(s1)) -#else -extern char *uStringDup(const char * /* s1 */); -#endif /***====================================================================***/ -- cgit v1.2.3