r25216: make talloc_append_string() a deprecated macro instead of
[jelmer/samba4-debian.git] / source / lib / talloc / talloc.c
index ea32b3273aa5c037a174766e61fe46f6020dc22f..4d72c0e871a2d190d37a5021aaa40e3e629250bd 100644 (file)
@@ -1132,32 +1132,6 @@ char *talloc_strdup(const void *t, const char *p)
        return __talloc_strlendup(t, p, strlen(p));
 }
 
-/*
- append to a talloced string 
-*/
-char *talloc_append_string(const void *t, char *orig, const char *append)
-{
-       char *ret;
-       size_t olen = strlen(orig);
-       size_t alenz;
-
-       if (!append)
-               return orig;
-
-       alenz = strlen(append) + 1;
-
-       ret = talloc_realloc(t, orig, char, olen + alenz);
-       if (!ret)
-               return NULL;
-
-       /* append the string with the trailing \0 */
-       memcpy(&ret[olen], append, alenz);
-
-       _talloc_set_name_const(ret, ret);
-
-       return ret;
-}
-
 /*
   strndup with a talloc
 */