diff --git a/src/org/rascalmpl/compiler/lang/rascalcore/check/CollectSyntaxDeclaration.rsc b/src/org/rascalmpl/compiler/lang/rascalcore/check/CollectSyntaxDeclaration.rsc index 6a474472b4..e720009ebe 100644 --- a/src/org/rascalmpl/compiler/lang/rascalcore/check/CollectSyntaxDeclaration.rsc +++ b/src/org/rascalmpl/compiler/lang/rascalcore/check/CollectSyntaxDeclaration.rsc @@ -153,9 +153,6 @@ private bool isTerminalSym((Sym) `( )`) = isTerminalSy private bool isTerminalSym((Sym) `()`) = true; private default bool isTerminalSym(Sym s) = s is characterClass || s is literal || s is caseInsensitiveLiteral; -private AType removeChainRule(aprod(prod(AType adt1,[AType adt2]))) = adt2 when isNonTerminalAType(adt2); -private default AType removeChainRule(AType t) = t; - void collect(current: (Prod) ` : `, Collector c){ symbols = [sym | sym <- syms, !(sym is empty)]; @@ -192,7 +189,7 @@ void collect(current: (Prod) ` :