Skip to content

Commit

Permalink
chore(gui): remove unused gitConfig
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryooooooga committed Dec 30, 2022
1 parent ae780fd commit 41222f0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 7 deletions.
5 changes: 1 addition & 4 deletions pkg/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ import (
appTypes "github.com/jesseduffield/lazygit/pkg/app/types"
"github.com/jesseduffield/lazygit/pkg/commands"
"github.com/jesseduffield/lazygit/pkg/commands/git_commands"
"github.com/jesseduffield/lazygit/pkg/commands/git_config"
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
"github.com/jesseduffield/lazygit/pkg/common"
"github.com/jesseduffield/lazygit/pkg/config"
Expand Down Expand Up @@ -106,9 +105,7 @@ func NewApp(config config.AppConfigurer, common *common.Common) (*App, error) {
return app, err
}

gitConfig := git_config.NewStdCachedGitConfig(app.Log)

app.Gui, err = gui.NewGui(common, config, gitConfig, app.Updater, showRecentRepos, dirName)
app.Gui, err = gui.NewGui(common, config, app.Updater, showRecentRepos, dirName)
if err != nil {
return app, err
}
Expand Down
3 changes: 1 addition & 2 deletions pkg/gui/dummies.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package gui

import (
"github.com/jesseduffield/lazygit/pkg/commands/git_config"
"github.com/jesseduffield/lazygit/pkg/commands/oscommands"
"github.com/jesseduffield/lazygit/pkg/config"
"github.com/jesseduffield/lazygit/pkg/updates"
Expand All @@ -17,6 +16,6 @@ func NewDummyUpdater() *updates.Updater {

func NewDummyGui() *Gui {
newAppConfig := config.NewDummyAppConfig()
dummyGui, _ := NewGui(utils.NewDummyCommon(), newAppConfig, git_config.NewFakeGitConfig(nil), NewDummyUpdater(), false, "")
dummyGui, _ := NewGui(utils.NewDummyCommon(), newAppConfig, NewDummyUpdater(), false, "")
return dummyGui
}
1 change: 0 additions & 1 deletion pkg/gui/gui.go
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,6 @@ func initialContext(contextTree *context.ContextTree, startArgs appTypes.StartAr
func NewGui(
cmn *common.Common,
config config.AppConfigurer,
gitConfig git_config.IGitConfig,
updater *updates.Updater,
showRecentRepos bool,
initialDir string,
Expand Down

0 comments on commit 41222f0

Please sign in to comment.