Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ollama
Commits
06918456
Unverified
Commit
06918456
authored
Jan 23, 2024
by
Meng Zhuo
Committed by
GitHub
Jan 22, 2024
Browse files
readline: drop not use min function (#2134)
parent
5576bb23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
7 deletions
+0
-7
readline/buffer.go
readline/buffer.go
+0
-7
No files found.
readline/buffer.go
View file @
06918456
...
...
@@ -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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment