readline: drop not use min function (#2134)

This commit is contained in:
Meng Zhuo 2024-01-23 00:15:08 +08:00 committed by GitHub
parent 5576bb2348
commit 069184562b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -133,13 +133,6 @@ func (b *Buffer) Size() int {
return b.Buf.Size()
}
func min(n, m int) int {
if n > m {
return m
}
return n
}
func (b *Buffer) Add(r rune) {
if b.Pos == b.Buf.Size() {
fmt.Printf("%c", r)