From 34d7afc0e91014732d79a4164fe0b00769f8b713 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Mon, 24 Jun 2024 18:14:51 +0200 Subject: [PATCH] Remove unused functions --- pkg/gui/controllers/helpers/confirmation_helper.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/pkg/gui/controllers/helpers/confirmation_helper.go b/pkg/gui/controllers/helpers/confirmation_helper.go index 4fed9ab0b..2364a4f57 100644 --- a/pkg/gui/controllers/helpers/confirmation_helper.go +++ b/pkg/gui/controllers/helpers/confirmation_helper.go @@ -5,8 +5,6 @@ import ( "fmt" "strings" - "github.com/jesseduffield/gocui" - "github.com/jesseduffield/lazygit/pkg/gui/style" "github.com/jesseduffield/lazygit/pkg/gui/types" "github.com/jesseduffield/lazygit/pkg/theme" @@ -118,12 +116,6 @@ func wrapMessageToWidth(wrap bool, message string, width int) []string { return wrappedLines } -func (self *ConfirmationHelper) getPopupPanelDimensions(wrap bool, prompt string) (int, int, int, int) { - panelWidth := self.getPopupPanelWidth() - panelHeight := getMessageHeight(wrap, prompt, panelWidth) - return self.getPopupPanelDimensionsAux(panelWidth, panelHeight) -} - func (self *ConfirmationHelper) getPopupPanelDimensionsForContentHeight(panelWidth, contentHeight int) (int, int, int, int) { return self.getPopupPanelDimensionsAux(panelWidth, contentHeight) } @@ -361,12 +353,6 @@ func (self *ConfirmationHelper) ResizeCurrentPopupPanel() error { return nil } -func (self *ConfirmationHelper) ResizePopupPanel(v *gocui.View, content string) error { - x0, y0, x1, y1 := self.getPopupPanelDimensions(v.Wrap, content) - _, err := self.c.GocuiGui().SetView(v.Name(), x0, y0, x1, y1, 0) - return err -} - func (self *ConfirmationHelper) resizeMenu() { // we want the unfiltered length here so that if we're filtering we don't // resize the window