From 5dfe21be851096eeb5680c6951373f717905539a Mon Sep 17 00:00:00 2001 From: stelar7 Date: Sun, 5 Nov 2023 02:05:12 +0100 Subject: [PATCH] LibWeb: Remove unused method on HTMLButtonElement --- .../Libraries/LibWeb/HTML/HTMLButtonElement.cpp | 14 -------------- Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h | 1 - 2 files changed, 15 deletions(-) diff --git a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp index d60904637c..6f4828c7d2 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp +++ b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.cpp @@ -57,20 +57,6 @@ void HTMLButtonElement::initialize(JS::Realm& realm) set_prototype(&Bindings::ensure_web_prototype(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); diff --git a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h index 76173781ff..94327c49bd 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h +++ b/Userland/Libraries/LibWeb/HTML/HTMLButtonElement.h @@ -34,7 +34,6 @@ public: #undef __ENUMERATE_HTML_BUTTON_TYPE_ATTRIBUTE }; - StringView type() const; TypeAttributeState type_state() const; WebIDL::ExceptionOr set_type(String const&);