From 0f3b0b65ae46b7cbeec4e4baafc8cf15b521949a Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 30 Dec 2020 01:37:48 +0100 Subject: [PATCH] LibGUI+LibCore: Remove the GUI::SizePolicy enum --- Libraries/LibCore/Object.h | 6 ------ Libraries/LibGUI/Widget.h | 15 --------------- 2 files changed, 21 deletions(-) diff --git a/Libraries/LibCore/Object.h b/Libraries/LibCore/Object.h index 7247ab97bd..9e7ff40265 100644 --- a/Libraries/LibCore/Object.h +++ b/Libraries/LibCore/Object.h @@ -300,12 +300,6 @@ const LogStream& operator<<(const LogStream&, const Object&); return false; \ }) -#define REGISTER_SIZE_POLICY_PROPERTY(property_name, getter, setter) \ - REGISTER_ENUM_PROPERTY( \ - property_name, getter, setter, GUI::SizePolicy, \ - { GUI::SizePolicy::Fill, "Fill" }, \ - { GUI::SizePolicy::Fixed, "Fixed" }) - #define REGISTER_TEXT_ALIGNMENT_PROPERTY(property_name, getter, setter) \ REGISTER_ENUM_PROPERTY( \ property_name, getter, setter, Gfx::TextAlignment, \ diff --git a/Libraries/LibGUI/Widget.h b/Libraries/LibGUI/Widget.h index 9c423a48af..3a5b213030 100644 --- a/Libraries/LibGUI/Widget.h +++ b/Libraries/LibGUI/Widget.h @@ -45,21 +45,6 @@ namespace GUI { -enum class SizePolicy { - Fixed, - Fill -}; -inline const char* to_string(SizePolicy policy) -{ - switch (policy) { - case SizePolicy::Fixed: - return "SizePolicy::Fixed"; - case SizePolicy::Fill: - return "SizePolicy::Fill"; - } - return "SizePolicy::(Invalid)"; -} - enum class HorizontalDirection { Left, Right