mirror of
https://github.com/ollama/ollama.git
synced 2025-04-02 09:00:28 +02:00
readline: drop not use min function (#2134)
This commit is contained in:
parent
5576bb2348
commit
069184562b
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user