diff options
author | Michael Drake <tlsa@netsurf-browser.org> | 2021-05-13 19:55:05 +0100 |
---|---|---|
committer | Michael Drake <michael.drake@codethink.co.uk> | 2021-05-13 20:03:36 +0100 |
commit | 0ddca8678be10d63548c1769ef0ebcd91e695718 (patch) | |
tree | 946aa084b91da2eba2ba928d6c62a69a565cd558 | |
parent | a1af03965a04ad4e4e22978d47d87c858f479323 (diff) | |
download | libhubbub-0ddca8678be10d63548c1769ef0ebcd91e695718.tar.gz libhubbub-0ddca8678be10d63548c1769ef0ebcd91e695718.tar.bz2 |
Perf tester: Hubbub doesn't support client allocation callback now.
-rw-r--r-- | perf/hubbub.c | 10 |
1 files changed, 1 insertions, 9 deletions
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, |