summaryrefslogtreecommitdiffstats
path: root/pkg/gui/merge_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/merge_panel.go')
-rw-r--r--pkg/gui/merge_panel.go21
1 files changed, 0 insertions, 21 deletions
diff --git a/pkg/gui/merge_panel.go b/pkg/gui/merge_panel.go
index 865eb4ffd..54783e986 100644
--- a/pkg/gui/merge_panel.go
+++ b/pkg/gui/merge_panel.go
@@ -8,7 +8,6 @@ import (
"math"
"github.com/jesseduffield/gocui"
- "github.com/jesseduffield/lazygit/pkg/gui/context"
"github.com/jesseduffield/lazygit/pkg/gui/mergeconflicts"
"github.com/jesseduffield/lazygit/pkg/gui/types"
)
@@ -284,26 +283,6 @@ func (gui *Gui) setConflictsAndRenderWithLock(path string, hasFocus bool) (bool,
return gui.setConflictsAndRender(path, hasFocus)
}
-func (gui *Gui) refreshMergeState() error {
- gui.State.Panels.Merging.Lock()
- defer gui.State.Panels.Merging.Unlock()
-
- if gui.currentContext().GetKey() != context.MAIN_MERGING_CONTEXT_KEY {
- return nil
- }
-
- hasConflicts, err := gui.setConflictsAndRender(gui.State.Panels.Merging.GetPath(), true)
- if err != nil {
- return gui.c.Error(err)
- }
-
- if !hasConflicts {
- return gui.escapeMerge()
- }
-
- return nil
-}
-
func (gui *Gui) switchToMerge(path string) error {
gui.takeOverMergeConflictScrolling()