diff --git a/pkg/gui/patch_building_panel.go b/pkg/gui/patch_building_panel.go index b44876f68..c39568cdf 100644 --- a/pkg/gui/patch_building_panel.go +++ b/pkg/gui/patch_building_panel.go @@ -1,8 +1,6 @@ package gui import ( - "strings" - "github.com/jesseduffield/gocui" "github.com/jesseduffield/lazygit/pkg/utils" ) @@ -121,15 +119,3 @@ func (gui *Gui) secondaryPatchPanelUpdateOpts() *viewUpdateOpts { return nil } - -func (gui *Gui) handleCopyPatchToClipboard() error { - // TODO: test that this works - - if err := gui.OSCommand.CopyToClipboard( - strings.Join(gui.GitCommand.PatchManager.RenderEachFilePatch(true), "\n"), - ); err != nil { - return gui.surfaceError(err) - } - - return nil -} diff --git a/pkg/gui/patch_options_panel.go b/pkg/gui/patch_options_panel.go index 32717b8e1..098e0db4d 100644 --- a/pkg/gui/patch_options_panel.go +++ b/pkg/gui/patch_options_panel.go @@ -13,8 +13,8 @@ func (gui *Gui) handleCreatePatchOptionsMenu(g *gocui.Gui, v *gocui.View) error menuItems := []*menuItem{ { - displayString: "copy patch to clipboard", - onPress: gui.handleCopyPatchToClipboard, + displayString: "reset patch", + onPress: gui.handleResetPatch, }, { displayString: "apply patch", @@ -24,10 +24,6 @@ func (gui *Gui) handleCreatePatchOptionsMenu(g *gocui.Gui, v *gocui.View) error displayString: "apply patch in reverse", onPress: func() error { return gui.handleApplyPatch(true) }, }, - { - displayString: "reset patch", - onPress: gui.handleResetPatch, - }, } if gui.GitCommand.PatchManager.CanRebase {