mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1142434 - Remove moz_strdup/moz_strndup, nothing uses them. r=njn
This commit is contained in:
parent
7ea77b404b
commit
ecee63231c
@ -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)
|
||||
|
@ -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) */
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user