From 0ddca8678be10d63548c1769ef0ebcd91e695718 Mon Sep 17 00:00:00 2001 From: Michael Drake Date: Thu, 13 May 2021 19:55:05 +0100 Subject: Perf tester: Hubbub doesn't support client allocation callback now. --- perf/hubbub.c | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) (limited to 'perf') diff --git a/perf/hubbub.c b/perf/hubbub.c index 70e0630..c945fe6 100644 --- a/perf/hubbub.c +++ b/perf/hubbub.c @@ -113,13 +113,6 @@ static hubbub_tree_handler tree_handler = { NULL }; -static void *myrealloc(void *ptr, size_t len, void *pw) -{ - UNUSED(pw); - - return realloc(ptr, len); -} - int main(int argc, char **argv) @@ -136,8 +129,7 @@ int main(int argc, char **argv) return 1; } - assert(hubbub_parser_create("UTF-8", false, myrealloc, NULL, &parser) == - HUBBUB_OK); + assert(hubbub_parser_create("UTF-8", false, &parser) == HUBBUB_OK); params.tree_handler = &tree_handler; assert(hubbub_parser_setopt(parser, HUBBUB_PARSER_TREE_HANDLER, -- cgit v1.2.3