summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Drake <tlsa@netsurf-browser.org>2013-12-14 23:16:32 (GMT)
committer Michael Drake <tlsa@netsurf-browser.org>2013-12-14 23:16:32 (GMT)
commit45b5b023f34da5398b26968af851acb0ee4c5b2b (patch)
tree75f3f503812f939e15db5621d78158fc7908cc1d
parentf8b0770275b36eb2f34daebfb6cc82a06aa43225 (diff)
downloadlibdom-45b5b023f34da5398b26968af851acb0ee4c5b2b.tar.gz
libdom-45b5b023f34da5398b26968af851acb0ee4c5b2b.tar.bz2
Update for new hubbub API.
-rw-r--r--bindings/hubbub/parser.c20
1 files changed, 0 insertions, 20 deletions
diff --git a/bindings/hubbub/parser.c b/bindings/hubbub/parser.c
index b597f9a..a2a33ed 100644
--- a/bindings/hubbub/parser.c
+++ b/bindings/hubbub/parser.c
@@ -678,24 +678,6 @@ static hubbub_tree_handler tree_handler = {
};
/**
- * Memory allocator
- */
-static void *dom_hubbub_alloc(void *ptr, size_t len, void *pw)
-{
- UNUSED(pw);
-
- if (ptr == NULL)
- return len > 0 ? malloc(len) : NULL;
-
- if (len == 0) {
- free(ptr);
- return NULL;
- }
-
- return realloc(ptr, len);
-}
-
-/**
* Default message callback
*/
static void dom_hubbub_parser_default_msg(uint32_t severity, void *ctx,
@@ -780,8 +762,6 @@ dom_hubbub_parser_create(dom_hubbub_parser_params *params,
/* create hubbub parser */
error = hubbub_parser_create(binding->encoding,
params->fix_enc,
- dom_hubbub_alloc,
- NULL,
&binding->parser);
if (error != HUBBUB_OK) {
free(binding);