diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:17:50 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:17:50 +0000 |
commit | cde62790f6ac1d19fd2808c8413832f4da5ae7b0 (patch) | |
tree | 552e5acd1f4dac09b55880aa173444b1b1018d64 /utils | |
parent | fabc086d4a30fa2b989d0d30a58b2b174a0e21ac (diff) | |
download | netsurf-cde62790f6ac1d19fd2808c8413832f4da5ae7b0.tar.gz netsurf-cde62790f6ac1d19fd2808c8413832f4da5ae7b0.tar.bz2 |
Update for new lpu API.
Diffstat (limited to 'utils')
-rw-r--r-- | utils/utils.c | 14 | ||||
-rw-r--r-- | utils/utils.h | 11 |
2 files changed, 0 insertions, 25 deletions
diff --git a/utils/utils.c b/utils/utils.c index ac9f5af7a..8cb1987d4 100644 --- a/utils/utils.c +++ b/utils/utils.c @@ -37,20 +37,6 @@ #include "utils/utf8.h" #include "utils/utils.h" -void * -ns_realloc(void *ptr, size_t size, void *pw) -{ - (void)pw; - - if (ptr == NULL) - return size > 0 ? malloc(size) : NULL; - if (size == 0) { - free(ptr); - return NULL; - } - return realloc(ptr, size); -} - char * strip(char * const s) { size_t i; diff --git a/utils/utils.h b/utils/utils.h index a1ff683d3..f2241ae07 100644 --- a/utils/utils.h +++ b/utils/utils.h @@ -136,17 +136,6 @@ typedef struct #endif -/** - * Private-word-capable realloc() implementation which - * behaves as most NS libraries expect in the face of - * realloc(ptr, 0) and realloc(NULL, size). - * - * \param ptr The pointer for reallocation - * \param size The number of bytes for the allocation - * \param pw A "private word" which we ignore. - * \return The new pointer (NULL on frees or errors) - */ -void *ns_realloc(void *ptr, size_t size, void *pw); char * strip(char * const s); int whitespace(const char * str); |