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/TextHostControlService.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'include/cru/ui/controls/TextHostControlService.h') 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: -- cgit v1.2.3