Explorar el Código

readline: drop not use min function (#2134)

Meng Zhuo hace 1 año
padre
commit
069184562b
Se han modificado 1 ficheros con 0 adiciones y 7 borrados
  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)