mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-10 13:00:29 +03:00
LibWeb: Remove unused method on HTMLButtonElement
This commit is contained in:
parent
27ae172e7e
commit
5dfe21be85
Notes:
sideshowbarker
2024-07-16 19:42:24 +09:00
Author: https://github.com/stelar7 Commit: https://github.com/SerenityOS/serenity/commit/5dfe21be85 Pull-request: https://github.com/SerenityOS/serenity/pull/21789 Issue: https://github.com/SerenityOS/serenity/issues/21778
@ -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);
|
||||
|
@ -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&);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user