mirror of
https://github.com/tcsenpai/ollama.git
synced 2025-06-06 19:25:21 +00: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()
|
return b.Buf.Size()
|
||||||
}
|
}
|
||||||
|
|
||||||
func min(n, m int) int {
|
|
||||||
if n > m {
|
|
||||||
return m
|
|
||||||
}
|
|
||||||
return n
|
|
||||||
}
|
|
||||||
|
|
||||||
func (b *Buffer) Add(r rune) {
|
func (b *Buffer) Add(r rune) {
|
||||||
if b.Pos == b.Buf.Size() {
|
if b.Pos == b.Buf.Size() {
|
||||||
fmt.Printf("%c", r)
|
fmt.Printf("%c", r)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user