Truly independent web browser
LibGfx: Remove unused Size::match_aspect_ratio()
Aliaksandr Kalenik7fe8811b4823
diff --git a/Libraries/LibGfx/Size.h b/Libraries/LibGfx/Size.hindex 6cc145e5661..17e409796c5 100644--- a/Libraries/LibGfx/Size.h+++ b/Libraries/LibGfx/Size.h@@ -82,25 +82,6 @@ public:return static_cast<float>(width()) / static_cast<float>(height());}- // Horizontal means preserve the width, Vertical means preserve the height.- [[nodiscard]] constexpr Size<T> match_aspect_ratio(float aspect_ratio, Orientation side_to_preserve) const- {- VERIFY(aspect_ratio != 0.0f);- auto matched = *this;- auto height_corresponding_to_width = static_cast<T>(static_cast<float>(width()) / aspect_ratio);- auto width_corresponding_to_height = static_cast<T>(static_cast<float>(height()) * aspect_ratio);-- switch (side_to_preserve) {- case Orientation::Vertical:- matched.m_width = width_corresponding_to_height;- break;- case Orientation::Horizontal:- matched.m_height = height_corresponding_to_width;- break;- }- return matched;- }-template<typename U>[[nodiscard]] constexpr bool contains(Size<U> const& other) const{