Skip to content

Commit

Permalink
readline: drop not use min function (ollama#2134)
Browse files Browse the repository at this point in the history
  • Loading branch information
mengzhuo authored Jan 22, 2024
1 parent 5576bb2 commit 0691845
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions readline/buffer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0691845

Please sign in to comment.