From d4fb807664a22fafa34f2ee37eebdb78e64f88e9 Mon Sep 17 00:00:00 2001 From: Seebs Date: Tue, 21 Mar 2023 14:01:41 -0500 Subject: [PATCH] drop unused isHex and IsInteger functions --- sql3/parser/scanner.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/sql3/parser/scanner.go b/sql3/parser/scanner.go index af03dec3a..73c9310b0 100644 --- a/sql3/parser/scanner.go +++ b/sql3/parser/scanner.go @@ -335,20 +335,6 @@ func isAlpha(ch rune) bool { return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') } -func isHex(ch rune) bool { - return isDigit(ch) || (ch >= 'a' && ch <= 'f') || (ch >= 'A' && ch <= 'F') -} - func isUnquotedIdent(ch rune) bool { return isAlpha(ch) || isDigit(ch) || ch == '_' || ch == '-' } - -// IsInteger returns true if s only contains digits. -func IsInteger(s string) bool { - for _, ch := range s { - if !isDigit(ch) { - return false - } - } - return s != "" -}