diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:17:15 +0000 |
---|---|---|
committer | Michael Drake <tlsa@netsurf-browser.org> | 2013-12-14 23:17:15 +0000 |
commit | 5196369f0b637e2cb37b08787cf96a33a704491f (patch) | |
tree | 98ae8ce05000355abe9ddd2d6cef473374f6f496 /src/utils/utils.c | |
parent | 701d16aa5ee8d39188dffb797ce14d7d0f95967a (diff) | |
download | libcss-5196369f0b637e2cb37b08787cf96a33a704491f.tar.gz libcss-5196369f0b637e2cb37b08787cf96a33a704491f.tar.bz2 |
Update for new lpu API.
Diffstat (limited to 'src/utils/utils.c')
-rw-r--r-- | src/utils/utils.c | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/utils/utils.c b/src/utils/utils.c index 1899b23..1745ea0 100644 --- a/src/utils/utils.c +++ b/src/utils/utils.c @@ -130,19 +130,3 @@ css_fixed css__number_from_string(const uint8_t *data, size_t len, return (intpart << 10) | fracpart; } - -/* Allocator to pass to libparserutils */ -void *css_alloc(void *data, size_t len, void *pw) -{ - UNUSED(pw); - - if (data == NULL) { - return (len > 0) ? malloc(len) : NULL; - } - if (len == 0) { - free(data); - return NULL; - } - return realloc(data, len); -} - |