From c1dbad5fdf0560983e6c832eddded6f610eae94e Mon Sep 17 00:00:00 2001 From: crupest Date: Thu, 10 Feb 2022 19:49:06 +0800 Subject: ... --- include/cru/ui/controls/Button.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'include/cru/ui/controls/Button.h') diff --git a/include/cru/ui/controls/Button.h b/include/cru/ui/controls/Button.h index d35d7ef8..1828dc57 100644 --- a/include/cru/ui/controls/Button.h +++ b/include/cru/ui/controls/Button.h @@ -15,12 +15,8 @@ class CRU_UI_API Button : public SingleChildControl, public: static constexpr StringView kControlType = u"Button"; - static Button* Create() { return new Button(); } - - protected: - Button(); - public: + Button(); Button(const Button& other) = delete; Button(Button&& other) = delete; Button& operator=(const Button& other) = delete; -- cgit v1.2.3