LibWeb: Remove unused HTML::parse_html_document()

This commit is contained in:
Andreas Kling 2022-04-06 14:48:20 +02:00
parent 0eae88f613
commit 1956c52c68
Notes: sideshowbarker 2024-07-17 14:19:31 +09:00
2 changed files with 0 additions and 10 deletions

View file

@ -118,14 +118,6 @@ static bool is_html_integration_point(DOM::Element const& element)
return false;
}
RefPtr<DOM::Document> parse_html_document(StringView data, const AK::URL& url, String const& encoding)
{
auto document = DOM::Document::create(url);
auto parser = HTMLParser::create(document, data, encoding);
parser->run(url);
return document;
}
HTMLParser::HTMLParser(DOM::Document& document, StringView input, String const& encoding)
: m_tokenizer(input, encoding)
, m_document(document)

View file

@ -39,8 +39,6 @@ namespace Web::HTML {
__ENUMERATE_INSERTION_MODE(AfterAfterBody) \
__ENUMERATE_INSERTION_MODE(AfterAfterFrameset)
RefPtr<DOM::Document> parse_html_document(StringView, const AK::URL&, String const& encoding);
class HTMLParser : public RefCounted<HTMLParser> {
friend class HTMLTokenizer;