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

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)