summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-12 20:45:14 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2013-01-12 20:45:14 -0800
commitc968ddd21a83f64c5bbe26b1b3adbfcfd3d04ff7 (patch)
tree0444d8e2bd1e411bf2baf2f1ba43eca2e02b7e3e
parenteeb4cc1251c01fe9d8097224a780c18a3b35b5d0 (diff)
Remove unused uStringDup function
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r--utils.c14
-rw-r--r--utils.h5
2 files changed, 0 insertions, 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
/***====================================================================***/