Ver código fonte

readline: drop not use min function (#2134)

Meng Zhuo 1 ano atrás
pai
commit
069184562b
1 arquivos alterados com 0 adições e 7 exclusões
  1. 0 7
      readline/buffer.go

+ 0 - 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)