util/strutil: remove duplicate isASCII declaration (#18522)

Signed-off-by: Toni Cárdenas <toni.cardenasvargas@grafana.com>
This commit is contained in:
Toni Cárdenas 2026-04-14 18:46:11 +02:00 committed by GitHub
parent 98809e40c6
commit 2ad75b0ef0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -52,16 +52,6 @@ func (m *JaroWinklerMatcher) Score(s string) float64 {
return jaroWinklerRunes(m.termRunes, []rune(s))
}
// isASCII reports whether s contains only ASCII characters.
func isASCII(s string) bool {
for i := range len(s) {
if s[i] >= 0x80 {
return false
}
}
return true
}
// jaroWinklerString implements the Jaro-Winkler algorithm directly on ASCII
// strings, avoiding any []rune conversion.
func jaroWinklerString(s1, s2 string) float64 {