libctf: remove ctf_malloc, ctf_free and ctf_strdup
[deliverable/binutils-gdb.git] / libctf / ctf-util.c
index f27c76852005223f7e174447ae031f04f9f3a5b5..d10b2b53a9c34329d901106deba9b4b0afe7165d 100644 (file)
@@ -103,19 +103,6 @@ ctf_sym_to_elf64 (const Elf32_Sym *src, Elf64_Sym *dst)
   return dst;
 }
 
-/* Same as strdup(3C), but use ctf_alloc() to do the memory allocation. */
-
-_libctf_malloc_ char *
-ctf_strdup (const char *s1)
-{
-  char *s2 = ctf_alloc (strlen (s1) + 1);
-
-  if (s2 != NULL)
-    (void) strcpy (s2, s1);
-
-  return s2;
-}
-
 /* A string appender working on dynamic strings.  */
 
 char *
This page took 0.023478 seconds and 4 git commands to generate.