Drop unused partialCasemap() helper
This commit is contained in:
parent
9b31dbfb24
commit
568de1d5d2
11
irc.go
11
irc.go
@ -287,17 +287,6 @@ func parseCasemappingToken(tokenValue string) (casemap casemapping, ok bool) {
|
|||||||
return casemap, true
|
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 {
|
type casemapMap struct {
|
||||||
m map[string]casemapEntry
|
m map[string]casemapEntry
|
||||||
casemap casemapping
|
casemap casemapping
|
||||||
|
Loading…
Reference in New Issue
Block a user