Drop unused partialCasemap() helper

This commit is contained in:
Simon Ser 2023-03-01 12:54:43 +01:00
parent 9b31dbfb24
commit 568de1d5d2

11
irc.go
View File

@ -287,17 +287,6 @@ func parseCasemappingToken(tokenValue string) (casemap casemapping, ok bool) {
return casemap, true
}
func partialCasemap(higher casemapping, name string) string {
nameFullyCM := []byte(higher(name))
nameBytes := []byte(name)
for i, r := range nameBytes {
if !('A' <= r && r <= 'Z') && !('a' <= r && r <= 'z') {
nameBytes[i] = nameFullyCM[i]
}
}
return string(nameBytes)
}
type casemapMap struct {
m map[string]casemapEntry
casemap casemapping