Skip to content
This repository was archived by the owner on Feb 21, 2024. It is now read-only.

Commit d4fb807

Browse files
committed
drop unused isHex and IsInteger functions
1 parent eb0640f commit d4fb807

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

sql3/parser/scanner.go

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -335,20 +335,6 @@ func isAlpha(ch rune) bool {
335335
return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')
336336
}
337337

338-
func isHex(ch rune) bool {
339-
return isDigit(ch) || (ch >= 'a' && ch <= 'f') || (ch >= 'A' && ch <= 'F')
340-
}
341-
342338
func isUnquotedIdent(ch rune) bool {
343339
return isAlpha(ch) || isDigit(ch) || ch == '_' || ch == '-'
344340
}
345-
346-
// IsInteger returns true if s only contains digits.
347-
func IsInteger(s string) bool {
348-
for _, ch := range s {
349-
if !isDigit(ch) {
350-
return false
351-
}
352-
}
353-
return s != ""
354-
}

0 commit comments

Comments
 (0)