1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-14 23:14:59 +00:00

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
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)