diff --git a/Userland/Libraries/LibWeb/DOM/ChildNode.h b/Userland/Libraries/LibWeb/DOM/ChildNode.h index bf4a29200f..441e23d1a4 100644 --- a/Userland/Libraries/LibWeb/DOM/ChildNode.h +++ b/Userland/Libraries/LibWeb/DOM/ChildNode.h @@ -113,21 +113,6 @@ public: node->remove(); } - WebIDL::ExceptionOr before(Vector, DeprecatedString>> const& nodes) - { - return before(from_deprecated_nodes(nodes)); - } - - WebIDL::ExceptionOr after(Vector, DeprecatedString>> const& nodes) - { - return after(from_deprecated_nodes(nodes)); - } - - WebIDL::ExceptionOr replace_with(Vector, DeprecatedString>> const& nodes) - { - return replace_with(from_deprecated_nodes(nodes)); - } - protected: ChildNode() = default; diff --git a/Userland/Libraries/LibWeb/DOM/NodeOperations.cpp b/Userland/Libraries/LibWeb/DOM/NodeOperations.cpp index 4fbcea0da7..a18ff863ac 100644 --- a/Userland/Libraries/LibWeb/DOM/NodeOperations.cpp +++ b/Userland/Libraries/LibWeb/DOM/NodeOperations.cpp @@ -42,20 +42,4 @@ WebIDL::ExceptionOr> convert_nodes_to_single_node(Vector< return document_fragment; } -Vector, String>> from_deprecated_nodes(Vector, DeprecatedString>> const& deprecated_nodes) -{ - Vector, String>> nodes; - nodes.ensure_capacity(deprecated_nodes.size()); - for (auto const& deprecated_node : deprecated_nodes) { - deprecated_node.visit( - [&nodes](JS::Handle node) { - nodes.unchecked_append(node); - }, - [&nodes](DeprecatedString const& deprecated_node) { - nodes.unchecked_append(MUST(String::from_deprecated_string(deprecated_node))); - }); - } - return nodes; -} - } diff --git a/Userland/Libraries/LibWeb/DOM/NodeOperations.h b/Userland/Libraries/LibWeb/DOM/NodeOperations.h index 175ad34430..6d8280c582 100644 --- a/Userland/Libraries/LibWeb/DOM/NodeOperations.h +++ b/Userland/Libraries/LibWeb/DOM/NodeOperations.h @@ -15,6 +15,4 @@ namespace Web::DOM { WebIDL::ExceptionOr> convert_nodes_to_single_node(Vector, String>> const& nodes, DOM::Document& document); -Vector, String>> from_deprecated_nodes(Vector, DeprecatedString>> const& deprecated_nodes); - } diff --git a/Userland/Libraries/LibWeb/DOM/ParentNode.cpp b/Userland/Libraries/LibWeb/DOM/ParentNode.cpp index 2dbe54677b..6ff1be43df 100644 --- a/Userland/Libraries/LibWeb/DOM/ParentNode.cpp +++ b/Userland/Libraries/LibWeb/DOM/ParentNode.cpp @@ -213,21 +213,6 @@ WebIDL::ExceptionOr ParentNode::prepend(Vector, S return {}; } -WebIDL::ExceptionOr ParentNode::prepend(Vector, DeprecatedString>> const& nodes) -{ - return prepend(from_deprecated_nodes(nodes)); -} - -WebIDL::ExceptionOr ParentNode::append(Vector, DeprecatedString>> const& nodes) -{ - return append(from_deprecated_nodes(nodes)); -} - -WebIDL::ExceptionOr ParentNode::replace_children(Vector, DeprecatedString>> const& nodes) -{ - return replace_children(from_deprecated_nodes(nodes)); -} - WebIDL::ExceptionOr ParentNode::append(Vector, String>> const& nodes) { // 1. Let node be the result of converting nodes into a node given nodes and this’s node document. diff --git a/Userland/Libraries/LibWeb/DOM/ParentNode.h b/Userland/Libraries/LibWeb/DOM/ParentNode.h index d82f96b964..13afffa8de 100644 --- a/Userland/Libraries/LibWeb/DOM/ParentNode.h +++ b/Userland/Libraries/LibWeb/DOM/ParentNode.h @@ -38,10 +38,6 @@ public: WebIDL::ExceptionOr append(Vector, String>> const& nodes); WebIDL::ExceptionOr replace_children(Vector, String>> const& nodes); - WebIDL::ExceptionOr prepend(Vector, DeprecatedString>> const& nodes); - WebIDL::ExceptionOr append(Vector, DeprecatedString>> const& nodes); - WebIDL::ExceptionOr replace_children(Vector, DeprecatedString>> const& nodes); - protected: ParentNode(JS::Realm& realm, Document& document, NodeType type) : Node(realm, document, type)