diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-12 20:45:14 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-01-12 20:45:14 -0800 |
commit | c968ddd21a83f64c5bbe26b1b3adbfcfd3d04ff7 (patch) | |
tree | 0444d8e2bd1e411bf2baf2f1ba43eca2e02b7e3e | |
parent | eeb4cc1251c01fe9d8097224a780c18a3b35b5d0 (diff) |
Remove unused uStringDup function
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | utils.c | 14 | ||||
-rw-r--r-- | utils.h | 5 |
2 files changed, 0 insertions, 19 deletions
@@ -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) @@ -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 /***====================================================================***/ |