xo-parser: drop expractiontype::emit

This commit is contained in:
Roland Conybeare 2024-08-01 12:57:42 +10:00
commit e013082442
2 changed files with 3 additions and 22 deletions

View file

@ -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_; }

View file

@ -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