diff options
author | Andreas Kling <kling@serenityos.org> | 2020-12-15 18:38:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-12-15 19:33:53 +0100 |
commit | 4a9dcd974a30d16ccf0d6a68c70003da1cbec5f0 (patch) | |
tree | 491bacfd2b478a682d8fdcbc7bc65a99755adbc9 | |
parent | 9c76c4f0cf31b01a5fc0103faa5036ad358a8149 (diff) | |
download | serenity-4a9dcd974a30d16ccf0d6a68c70003da1cbec5f0.zip |
LibWeb: Remove unused Element::set_attributes()
-rw-r--r-- | Libraries/LibWeb/DOM/Element.cpp | 10 | ||||
-rw-r--r-- | Libraries/LibWeb/DOM/Element.h | 2 |
2 files changed, 0 insertions, 12 deletions
diff --git a/Libraries/LibWeb/DOM/Element.cpp b/Libraries/LibWeb/DOM/Element.cpp index 97691c2a6b..1956cc21a4 100644 --- a/Libraries/LibWeb/DOM/Element.cpp +++ b/Libraries/LibWeb/DOM/Element.cpp @@ -101,16 +101,6 @@ void Element::remove_attribute(const FlyString& name) m_attributes.remove_first_matching([&](auto& attribute) { return attribute.name() == name; }); } -void Element::set_attributes(Vector<Attribute>&& attributes) -{ - CSS::StyleInvalidator style_invalidator(document()); - - m_attributes = move(attributes); - - for (auto& attribute : m_attributes) - parse_attribute(attribute.name(), attribute.value()); -} - bool Element::has_class(const FlyString& class_name) const { for (auto& class_ : m_classes) { diff --git a/Libraries/LibWeb/DOM/Element.h b/Libraries/LibWeb/DOM/Element.h index 6aa3119acc..d85c2115b8 100644 --- a/Libraries/LibWeb/DOM/Element.h +++ b/Libraries/LibWeb/DOM/Element.h @@ -65,8 +65,6 @@ public: void set_attribute(const FlyString& name, const String& value); void remove_attribute(const FlyString& name); - void set_attributes(Vector<Attribute>&&); - template<typename Callback> void for_each_attribute(Callback callback) const { |