xo-parser: simplify: exprstate::on_colon drop retval

This commit is contained in:
Roland Conybeare 2024-08-01 13:05:58 +10:00
commit 880606908b
2 changed files with 2 additions and 5 deletions

View file

@ -356,7 +356,7 @@ namespace xo {
}
}
expraction
void
exprstate::on_colon(exprstatestack * p_stack) {
constexpr bool c_debug_flag = true;
scope log(XO_DEBUG(c_debug_flag));
@ -375,11 +375,8 @@ namespace xo {
this->exs_type_ = exprstatetype::def_2;
p_stack->push_exprstate(exprstatetype::expect_type);
return expraction::keep();
} else {
assert(false);
return expraction();
}
}