From f2fa696c9672253cb7d117b60ffd662af1a6ff1d Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Sat, 14 Dec 2013 23:16:32 +0000 Subject: Update for new hubbub API. --- bindings/hubbub/parser.c | 20 -------------------- 1 file changed, 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 @@ -677,24 +677,6 @@ static hubbub_tree_handler tree_handler = { NULL }; -/** - * 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 */ @@ -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); -- cgit v1.2.3