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/controls/Control.h | 4 ---- include/cru/ui/controls/TextHostControlService.h | 11 +---------- include/cru/ui/controls/TreeView.h | 3 --- 3 files changed, 1 insertion(+), 17 deletions(-) (limited to 'include/cru/ui/controls') diff --git a/include/cru/ui/controls/Control.h b/include/cru/ui/controls/Control.h index 7301ecd8..d70854fe 100644 --- a/include/cru/ui/controls/Control.h +++ b/include/cru/ui/controls/Control.h @@ -29,10 +29,6 @@ class CRU_UI_API Control : public Object, Control(); public: - Control(const Control& other) = delete; - Control(Control&& other) = delete; - Control& operator=(const Control& other) = delete; - Control& operator=(Control&& other) = delete; ~Control() override; public: diff --git a/include/cru/ui/controls/TextHostControlService.h b/include/cru/ui/controls/TextHostControlService.h index a945e427..529225a7 100644 --- a/include/cru/ui/controls/TextHostControlService.h +++ b/include/cru/ui/controls/TextHostControlService.h @@ -30,7 +30,7 @@ struct CRU_UI_API ITextHostControl : virtual Interface { class TextHostControlService; -class TextControlMovePattern : public Object { +class TextControlMovePattern { public: static TextControlMovePattern kLeft; static TextControlMovePattern kRight; @@ -57,11 +57,6 @@ class TextControlMovePattern : public Object { key_bind_(key_bind), move_function_(move_function) {} - CRU_DEFAULT_COPY(TextControlMovePattern) - CRU_DEFAULT_MOVE(TextControlMovePattern) - - ~TextControlMovePattern() override = default; - public: std::string GetName() const { return name_; } helper::ShortcutKeyBind GetKeyBind() const { return key_bind_; } @@ -81,10 +76,6 @@ class CRU_UI_API TextHostControlService : public Object { public: TextHostControlService(Control* control); - - CRU_DELETE_COPY(TextHostControlService) - CRU_DELETE_MOVE(TextHostControlService) - ~TextHostControlService(); public: diff --git a/include/cru/ui/controls/TreeView.h b/include/cru/ui/controls/TreeView.h index dc74750a..f4938259 100644 --- a/include/cru/ui/controls/TreeView.h +++ b/include/cru/ui/controls/TreeView.h @@ -14,9 +14,6 @@ class CRU_UI_API TreeViewItem : public Object { ~TreeViewItem() override; public: - CRU_DELETE_COPY(TreeViewItem) - CRU_DELETE_MOVE(TreeViewItem) - TreeView* GetTreeView() { return tree_view_; } TreeViewItem* GetParent() { return parent_; } -- cgit v1.2.3