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/parse/Grammar.h | 4 ---- include/cru/parse/Production.h | 4 ---- include/cru/parse/Symbol.h | 4 ---- include/cru/parse/TokenType.h | 4 ---- 4 files changed, 16 deletions(-) (limited to 'include/cru/parse') diff --git a/include/cru/parse/Grammar.h b/include/cru/parse/Grammar.h index 522cc0fd..2bf79fe6 100644 --- a/include/cru/parse/Grammar.h +++ b/include/cru/parse/Grammar.h @@ -9,10 +9,6 @@ namespace cru::parse { class CRU_PARSE_API Grammar : public Object { public: Grammar(); - - CRU_DELETE_COPY(Grammar) - CRU_DELETE_MOVE(Grammar) - ~Grammar() override; public: diff --git a/include/cru/parse/Production.h b/include/cru/parse/Production.h index 81236020..eb127893 100644 --- a/include/cru/parse/Production.h +++ b/include/cru/parse/Production.h @@ -9,10 +9,6 @@ class CRU_PARSE_API Production : public Object { public: Production(Grammar* grammar, std::string name, Nonterminal* left, std::vector right); - - CRU_DELETE_COPY(Production) - CRU_DELETE_MOVE(Production) - ~Production() override; public: diff --git a/include/cru/parse/Symbol.h b/include/cru/parse/Symbol.h index d40243e7..d2691cdd 100644 --- a/include/cru/parse/Symbol.h +++ b/include/cru/parse/Symbol.h @@ -11,10 +11,6 @@ class Grammar; class CRU_PARSE_API Symbol : public Object { public: explicit Symbol(Grammar* grammar, std::string name); - - CRU_DELETE_COPY(Symbol) - CRU_DELETE_MOVE(Symbol) - ~Symbol() override; public: diff --git a/include/cru/parse/TokenType.h b/include/cru/parse/TokenType.h index a015a49b..44c515da 100644 --- a/include/cru/parse/TokenType.h +++ b/include/cru/parse/TokenType.h @@ -8,10 +8,6 @@ namespace cru::parse { class CRU_PARSE_API TokenType : public Object { public: explicit TokenType(std::string name); - - CRU_DELETE_COPY(TokenType) - CRU_DELETE_MOVE(TokenType) - ~TokenType() override; public: -- cgit v1.2.3