mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 14:07:43 +00:00
LibWeb: Remove unused Element::set_attributes()
This commit is contained in:
parent
9c76c4f0cf
commit
4a9dcd974a
2 changed files with 0 additions and 12 deletions
|
@ -101,16 +101,6 @@ void Element::remove_attribute(const FlyString& name)
|
||||||
m_attributes.remove_first_matching([&](auto& attribute) { return attribute.name() == 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
|
bool Element::has_class(const FlyString& class_name) const
|
||||||
{
|
{
|
||||||
for (auto& class_ : m_classes) {
|
for (auto& class_ : m_classes) {
|
||||||
|
|
|
@ -65,8 +65,6 @@ public:
|
||||||
void set_attribute(const FlyString& name, const String& value);
|
void set_attribute(const FlyString& name, const String& value);
|
||||||
void remove_attribute(const FlyString& name);
|
void remove_attribute(const FlyString& name);
|
||||||
|
|
||||||
void set_attributes(Vector<Attribute>&&);
|
|
||||||
|
|
||||||
template<typename Callback>
|
template<typename Callback>
|
||||||
void for_each_attribute(Callback callback) const
|
void for_each_attribute(Callback callback) const
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue