Skip to content

Commit 5238f17

Browse files
committed
Find and remove unsused code using "deadcode -test ."
From golang.org/x/tools/cmd/deadcode@latest
1 parent c76b249 commit 5238f17

File tree

2 files changed

+0
-10
lines changed

2 files changed

+0
-10
lines changed

v2/categories.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,6 @@ import (
44
"github.com/xyproto/mode"
55
)
66

7-
// CLike returns true if the given mode is a C-like language... ish
8-
func CLike(m mode.Mode) bool {
9-
return cLikeFor(m)
10-
}
11-
127
// cLikeSwitch checks if the given mode is a language with C-like for expressions
138
func cLikeFor(m mode.Mode) bool {
149
return m == mode.Arduino || m == mode.C || m == mode.Cpp || m == mode.ObjC || m == mode.Shader || m == mode.Zig || m == mode.Java || m == mode.JavaScript || m == mode.Kotlin || m == mode.TypeScript || m == mode.D || m == mode.Dart || m == mode.Hare || m == mode.Jakt || m == mode.Scala

v2/ollama.go

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ func (cc *CodeCompleter) LoadModel() error {
5353
return nil
5454
}
5555

56-
// FoundModel returns true if the name of the model to use for code completion was found
57-
func (cc *CodeCompleter) FoundModel() bool {
58-
return cc.foundModel
59-
}
60-
6156
// Loaded returns true if the ollama client could be used and the code completion model could be loaded
6257
func (cc *CodeCompleter) Loaded() bool {
6358
return cc.ollamaClient != nil

0 commit comments

Comments
 (0)