mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 21:15:14 +00:00
LibWeb: Remove unused HTML::parse_html_document()
This commit is contained in:
parent
0eae88f613
commit
1956c52c68
Notes:
sideshowbarker
2024-07-17 14:19:31 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/1956c52c68
2 changed files with 0 additions and 10 deletions
|
@ -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)
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue