diff options
author | Guy Harris <guy@alum.mit.edu> | 2015-01-18 17:48:53 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2015-01-19 01:49:24 +0000 |
commit | 59155d1d1c40a979d5f5040e4df35ee72dadbb9c (patch) | |
tree | b110439505b17986a7c6d8097a300143c2f3e893 /epan/emem.c | |
parent | 5162b7f146093a35d8bfc0facf88fb55737f9395 (diff) |
Eliminate ep_strdup(), as it's no longer used.
Also, remove some no-longer-existent functions from checkAPIs.pl.
Change-Id: I2bf11e3ec03a34f9e89d58d560e340d76fd3ddc1
Reviewed-on: https://code.wireshark.org/review/6645
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/emem.c')
-rw-r--r-- | epan/emem.c | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/epan/emem.c b/epan/emem.c index c0332b1434..d86fb7135c 100644 --- a/epan/emem.c +++ b/epan/emem.c @@ -691,31 +691,6 @@ ep_alloc0(size_t size) } static gchar * -emem_strdup(const gchar *src, void *allocator(size_t)) -{ - guint len; - gchar *dst; - - /* If str is NULL, just return the string "<NULL>" so that the callers don't - * have to bother checking it. - */ - if(!src) - src = "<NULL>"; - - len = (guint) strlen(src); - dst = (gchar *)memcpy(allocator(len+1), src, len+1); - - return dst; -} - -gchar * -ep_strdup(const gchar *src) -{ - return emem_strdup(src, ep_alloc); -} - - -static gchar * emem_strdup_vprintf(const gchar *fmt, va_list ap, void *allocator(size_t)) { va_list ap2; |