Unverified Commit 06918456 authored by Meng Zhuo's avatar Meng Zhuo Committed by GitHub
Browse files

readline: drop not use min function (#2134)

parent 5576bb23
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment