Bug 1142434 - Remove moz_strdup/moz_strndup, nothing uses them. r=njn

This commit is contained in:
Mike Hommey 2015-03-26 18:18:13 +09:00
parent 7ea77b404b
commit ecee63231c
2 changed files with 0 additions and 16 deletions

View File

@ -141,11 +141,6 @@ moz_xstrdup(const char* str)
}
return dup;
}
char*
moz_strdup(const char* str)
{
return strdup_impl(str);
}
#if defined(HAVE_STRNDUP)
char*
@ -158,11 +153,6 @@ moz_xstrndup(const char* str, size_t strsize)
}
return dup;
}
char*
moz_strndup(const char* str, size_t strsize)
{
return strndup_impl(str, strsize);
}
#endif // if defined(HAVE_STRNDUP)
#if defined(HAVE_POSIX_MEMALIGN)

View File

@ -90,9 +90,6 @@ MFBT_API void* moz_realloc(void* ptr, size_t size)
MFBT_API char* moz_xstrdup(const char* str)
NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT;
MFBT_API char* moz_strdup(const char* str)
NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT;
MFBT_API size_t moz_malloc_usable_size(void *ptr);
MFBT_API size_t moz_malloc_size_of(const void *ptr);
@ -100,9 +97,6 @@ MFBT_API size_t moz_malloc_size_of(const void *ptr);
#if defined(HAVE_STRNDUP)
MFBT_API char* moz_xstrndup(const char* str, size_t strsize)
NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT;
MFBT_API char* moz_strndup(const char* str, size_t strsize)
NS_ATTR_MALLOC NS_WARN_UNUSED_RESULT;
#endif /* if defined(HAVE_STRNDUP) */