From ec39f419e5ae06d3ed6fc312d6e65b315d626d27 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 14 Jun 2020 19:05:36 +0200 Subject: LibWeb: Remove some unused functions from HTMLImageElement --- Libraries/LibWeb/DOM/HTMLImageElement.cpp | 12 ------------ Libraries/LibWeb/DOM/HTMLImageElement.h | 2 -- 2 files changed, 14 deletions(-) (limited to 'Libraries') diff --git a/Libraries/LibWeb/DOM/HTMLImageElement.cpp b/Libraries/LibWeb/DOM/HTMLImageElement.cpp index e21c66c3fa..096af7a834 100644 --- a/Libraries/LibWeb/DOM/HTMLImageElement.cpp +++ b/Libraries/LibWeb/DOM/HTMLImageElement.cpp @@ -95,18 +95,6 @@ void HTMLImageElement::animate() layout_node()->set_needs_display(); } -#if 0 -int HTMLImageElement::preferred_width() const -{ - return attribute(HTML::AttributeNames::width).to_int().value_or(m_image_decoder ? m_image_decoder->width() : 0); -} - -int HTMLImageElement::preferred_height() const -{ - return attribute(HTML::AttributeNames::height).to_int().value_or(m_image_decoder ? m_image_decoder->height() : 0); -} -#endif - RefPtr HTMLImageElement::create_layout_node(const StyleProperties* parent_style) const { auto style = document().style_resolver().resolve_style(*this, parent_style); diff --git a/Libraries/LibWeb/DOM/HTMLImageElement.h b/Libraries/LibWeb/DOM/HTMLImageElement.h index 6d0434ba52..6eae9d4874 100644 --- a/Libraries/LibWeb/DOM/HTMLImageElement.h +++ b/Libraries/LibWeb/DOM/HTMLImageElement.h @@ -48,8 +48,6 @@ public: String alt() const { return attribute(HTML::AttributeNames::alt); } String src() const { return attribute(HTML::AttributeNames::src); } - int preferred_width() const; - int preferred_height() const; const Gfx::Bitmap* bitmap() const; const Gfx::ImageDecoder* image_decoder() const; -- cgit v1.2.3