From ca1f136faae71cd063a264cf45195fb47cdba2ba Mon Sep 17 00:00:00 2001 From: Vincent Sanders Date: Sat, 7 Jul 2012 17:03:25 +0100 Subject: Remove unused and unneeded extraneous_chunk API --- src/parser.c | 35 ----------------------------------- 1 file changed, 35 deletions(-) diff --git a/src/parser.c b/src/parser.c index bf6cca4..8da9d79 100644 --- a/src/parser.c +++ b/src/parser.c @@ -266,41 +266,6 @@ hubbub_error hubbub_parser_parse_chunk(hubbub_parser *parser, return HUBBUB_OK; } -#if 0 -/** - * Pass a chunk of extraneous data to a hubbub parser for parsing - * - * \param parser Parser instance to use - * \param data Data to parse (encoded in UTF-8) - * \param len Length, in byte, of data - * \return HUBBUB_OK on success, appropriate error otherwise - */ -hubbub_error hubbub_parser_parse_extraneous_chunk(hubbub_parser *parser, - const uint8_t *data, size_t len) -{ - hubbub_error error; - - /** \todo In some cases, we don't actually want script-inserted - * data to be parsed until later. We'll need some way of flagging - * this through the public API, and the inputstream API will need - * some way of marking the insertion point so that, when the - * tokeniser is run, only the inserted chunk is parsed. */ - - if (parser == NULL || data == NULL) - return HUBBUB_BADPARM; - - error = parserutils_inputstream_insert(parser->stream, data, len); - if (error != HUBBUB_OK) - return error; - - error = hubbub_tokeniser_run(parser->tok); - if (error != HUBBUB_OK) - return error; - - return HUBBUB_OK; -} -#endif - /** * Inform the parser that the last chunk of data has been parsed * -- cgit v1.2.3