Browse Source

readline: drop not use min function (#2134)

upgrade-all
Meng Zhuo 3 years ago
committed by GitHub
parent
commit
069184562b
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      readline/buffer.go

7
readline/buffer.go

@ -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)

Loading…
Cancel
Save