LibWeb: Remove unused method on HTMLButtonElement

This commit is contained in:
stelar7 2023-11-05 02:05:12 +01:00 committed by Andreas Kling
parent 27ae172e7e
commit 5dfe21be85
Notes: sideshowbarker 2024-07-16 19:42:24 +09:00
2 changed files with 0 additions and 15 deletions

View File

@ -57,20 +57,6 @@ void HTMLButtonElement::initialize(JS::Realm& realm)
set_prototype(&Bindings::ensure_web_prototype<Bindings::HTMLButtonElementPrototype>(realm, "HTMLButtonElement"));
}
StringView HTMLButtonElement::type() const
{
auto value = deprecated_attribute(HTML::AttributeNames::type);
#define __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE(keyword, _) \
if (value.equals_ignoring_ascii_case(#keyword##sv)) \
return #keyword##sv;
ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTES
#undef __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE
// The missing value default and invalid value default are the Submit Button state.
return "submit"sv;
}
HTMLButtonElement::TypeAttributeState HTMLButtonElement::type_state() const
{
auto value = deprecated_attribute(HTML::AttributeNames::type);

View File

@ -34,7 +34,6 @@ public:
#undef __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE
};
StringView type() const;
TypeAttributeState type_state() const;
WebIDL::ExceptionOr<void> set_type(String const&);