summaryrefslogtreecommitdiff
path: root/src/utils
diff options
context:
space:
mode:
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