Skip to content

Commit a4d6d02

Browse files
committed
Remove unused functions
For some reason the //nolint:golint,unused comment no longer seems to work after I updated gopls (I think). But I also don't understand why we mark unused stuff with linter comments instead of just getting rid of it.
1 parent 1b571f9 commit a4d6d02

File tree

1 file changed

+0
-21
lines changed

1 file changed

+0
-21
lines changed

pkg/commands/git_commands/deps_test.go

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import (
77
gogit "github.com/jesseduffield/go-git/v5"
88
"github.com/jesseduffield/lazygit/pkg/commands/git_config"
99
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
10-
"github.com/jesseduffield/lazygit/pkg/commands/patch"
1110
"github.com/jesseduffield/lazygit/pkg/common"
1211
"github.com/jesseduffield/lazygit/pkg/config"
1312
"github.com/jesseduffield/lazygit/pkg/utils"
@@ -126,26 +125,6 @@ func buildWorkingTreeCommands(deps commonDeps) *WorkingTreeCommands {
126125
return NewWorkingTreeCommands(gitCommon, submoduleCommands, fileLoader)
127126
}
128127

129-
func buildPatchCommands(deps commonDeps) *PatchCommands { //nolint:golint,unused
130-
gitCommon := buildGitCommon(deps)
131-
rebaseCommands := buildRebaseCommands(deps)
132-
commitCommands := buildCommitCommands(deps)
133-
statusCommands := buildStatusCommands(deps)
134-
stashCommands := buildStashCommands(deps)
135-
loadFileFn := func(from string, to string, reverse bool, filename string, plain bool) (string, error) {
136-
return "", nil
137-
}
138-
patchBuilder := patch.NewPatchBuilder(gitCommon.Log, loadFileFn)
139-
140-
return NewPatchCommands(gitCommon, rebaseCommands, commitCommands, statusCommands, stashCommands, patchBuilder)
141-
}
142-
143-
func buildStatusCommands(deps commonDeps) *StatusCommands { //nolint:golint,unused
144-
gitCommon := buildGitCommon(deps)
145-
146-
return NewStatusCommands(gitCommon)
147-
}
148-
149128
func buildStashCommands(deps commonDeps) *StashCommands {
150129
gitCommon := buildGitCommon(deps)
151130
fileLoader := buildFileLoader(gitCommon)

0 commit comments

Comments
 (0)