From ac153f2b90b966baaf132a487514ae2194a64dd5 Mon Sep 17 00:00:00 2001 From: Charlie Stanton Date: Wed, 19 Jul 2023 12:16:39 +0100 Subject: Removes lots of old atom based code from walk --- subex/parse.go | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'subex') diff --git a/subex/parse.go b/subex/parse.go index a671e6d..7d0e586 100644 --- a/subex/parse.go +++ b/subex/parse.go @@ -22,17 +22,6 @@ func accept(l RuneReader, chars string) bool { return false } -func expectBracket(l RuneReader, ifLeft walk.AtomOLD, ifRight walk.AtomOLD) walk.AtomOLD { - switch l.Next() { - case '(': - return ifLeft - case ')': - return ifRight - default: - panic("Expected ( or )") - } -} - func isNumericRune(r rune) bool { return '0' <= r && r <= '9' || r == '.' } -- cgit v1.2.3