From 06f16479ae1b727252404b763b60c924e3fe7903 Mon Sep 17 00:00:00 2001 From: Yuqian Yang Date: Mon, 3 Nov 2025 20:04:52 +0800 Subject: Remove Object2. --- include/cru/ui/style/StyleRule.h | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'include/cru/ui/style/StyleRule.h') diff --git a/include/cru/ui/style/StyleRule.h b/include/cru/ui/style/StyleRule.h index e7f4d390..382cd664 100644 --- a/include/cru/ui/style/StyleRule.h +++ b/include/cru/ui/style/StyleRule.h @@ -9,7 +9,7 @@ namespace cru::ui::style { * \brief An immutable style rule contains a condition and a styler. * \remarks This class is immutable and has value semantics. */ -class CRU_UI_API StyleRule : public Object { +class CRU_UI_API StyleRule { public: static ClonablePtr Create(ClonablePtr condition, ClonablePtr styler, @@ -21,11 +21,6 @@ class CRU_UI_API StyleRule : public Object { StyleRule(ClonablePtr condition, ClonablePtr styler, std::string name = {}); - CRU_DEFAULT_COPY(StyleRule) - CRU_DEFAULT_MOVE(StyleRule) - - ~StyleRule() override = default; - public: std::string GetName() const { return name_; } Condition* GetCondition() const { return condition_.get(); } -- cgit v1.2.3