readline: drop not use min function (#2134)
This commit is contained in:
parent
5576bb2348
commit
069184562b
1 changed files with 0 additions and 7 deletions
|
@ -133,13 +133,6 @@ func (b *Buffer) Size() int {
|
||||||
return b.Buf.Size()
|
return b.Buf.Size()
|
||||||
}
|
}
|
||||||
|
|
||||||
func min(n, m int) int {
|
|
||||||
if n > m {
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
return n
|
|
||||||
}
|
|
||||||
|
|
||||||
func (b *Buffer) Add(r rune) {
|
func (b *Buffer) Add(r rune) {
|
||||||
if b.Pos == b.Buf.Size() {
|
if b.Pos == b.Buf.Size() {
|
||||||
fmt.Printf("%c", r)
|
fmt.Printf("%c", r)
|
||||||
|
|
Loading…
Reference in a new issue