mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:27:44 +00:00
LibWeb: Remove more unused StringBuilders in HTMLToken
These fields aren't read anywhere but I didn't feel like removing them outright.
This commit is contained in:
parent
d9e52997e2
commit
2150609590
1 changed files with 4 additions and 6 deletions
|
@ -142,14 +142,12 @@ public:
|
|||
VERIFY(is_start_tag() || is_end_tag());
|
||||
for (auto& attribute : m_tag.attributes) {
|
||||
if (old_name == attribute.local_name_builder.string_view()) {
|
||||
attribute.prefix_builder.clear();
|
||||
attribute.prefix_builder.append(prefix);
|
||||
attribute.prefix = prefix;
|
||||
|
||||
attribute.local_name_builder.clear();
|
||||
attribute.local_name_builder.append(local_name);
|
||||
|
||||
attribute.namespace_builder.clear();
|
||||
attribute.namespace_builder.append(namespace_);
|
||||
attribute.namespace_ = namespace_;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -180,9 +178,9 @@ private:
|
|||
};
|
||||
|
||||
struct AttributeBuilder {
|
||||
StringBuilder prefix_builder;
|
||||
String prefix;
|
||||
StringBuilder local_name_builder;
|
||||
StringBuilder namespace_builder;
|
||||
String namespace_;
|
||||
StringBuilder value_builder;
|
||||
Position name_start_position;
|
||||
Position value_start_position;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue