<- Back to shtanton's homepage
aboutsummaryrefslogtreecommitdiff
path: root/subex/parse.go
diff options
context:
space:
mode:
Diffstat (limited to 'subex/parse.go')
-rw-r--r--subex/parse.go11
1 files changed, 0 insertions, 11 deletions
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 == '.'
}