From e013082442505f9a1631dd7827264ad417a0b66a Mon Sep 17 00:00:00 2001 From: Roland Conybeare Date: Thu, 1 Aug 2024 12:57:42 +1000 Subject: [PATCH] xo-parser: drop expractiontype::emit --- include/xo/parser/parser.hpp | 5 ++--- src/parser/parser.cpp | 20 +------------------- 2 files changed, 3 insertions(+), 22 deletions(-) diff --git a/include/xo/parser/parser.hpp b/include/xo/parser/parser.hpp index 193d1cc5..bbb0a584 100644 --- a/include/xo/parser/parser.hpp +++ b/include/xo/parser/parser.hpp @@ -114,7 +114,7 @@ namespace xo { invalid = -1, keep, - emit, + //emit, //pop, n_expractiontype @@ -140,9 +140,8 @@ namespace xo { {} static expraction keep(); - static expraction emit(const exprir & ir); #ifdef OBSOLETE - static expraction pop(); + static expraction emit(const exprir & ir); #endif expractiontype action_type() const { return action_type_; } diff --git a/src/parser/parser.cpp b/src/parser/parser.cpp index 4a0f37f5..3a0eaaf9 100644 --- a/src/parser/parser.cpp +++ b/src/parser/parser.cpp @@ -87,10 +87,6 @@ namespace xo { return "?invalid"; case expractiontype::keep: return "keep"; - case expractiontype::emit: - return "emit"; - //case expractiontype::pop: - //return "pop"; case expractiontype::n_expractiontype: break; } @@ -104,26 +100,12 @@ namespace xo { exprir()); } +#ifdef OBSOLETE expraction expraction::emit(const exprir & ir) { return expraction(expractiontype::emit, ir); } - -#ifdef OBSOLETE - expraction - expraction::pop(const exprir & ir) { - return expraction(expractiontype::pop, - ir); - } -#endif - -#ifdef OBSOLETE - expraction - expraction::pop() { - return expraction(expractiontype::pop, - exprir()); - } #endif void