summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-12-14 23:17:15 +0000
committerMichael Drake <tlsa@netsurf-browser.org>2013-12-14 23:17:15 +0000
commit5196369f0b637e2cb37b08787cf96a33a704491f (patch)
tree98ae8ce05000355abe9ddd2d6cef473374f6f496 /src/utils
parent701d16aa5ee8d39188dffb797ce14d7d0f95967a (diff)
downloadlibcss-5196369f0b637e2cb37b08787cf96a33a704491f.tar.gz
libcss-5196369f0b637e2cb37b08787cf96a33a704491f.tar.bz2
Update for new lpu API.
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/utils.c16
-rw-r--r--src/utils/utils.h5
2 files changed, 0 insertions, 21 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);
-}
-
diff --git a/src/utils/utils.h b/src/utils/utils.h
index 3f7fcd0..c1f8d80 100644
--- a/src/utils/utils.h
+++ b/src/utils/utils.h
@@ -77,9 +77,4 @@ static inline css_error css_error_from_lwc_error(lwc_error err)
return CSS_INVALID;
}
-
-/* Allocator to pass to libparserutils */
-#define CSS_ALLOC_PW NULL
-void *css_alloc(void *data, size_t len, void *pw);
-
#endif