From 68a9d7fd773135b59d4eccf439bfe0e28a13cb81 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 15 Apr 2023 14:32:41 +1000 Subject: appease linter --- pkg/gui/controllers/helpers/update_helper.go | 4 +--- pkg/gui/gui.go | 9 --------- pkg/gui/main_panels.go | 4 ---- pkg/gui/services/custom_commands/session_state_loader.go | 1 - 4 files changed, 1 insertion(+), 17 deletions(-) (limited to 'pkg/gui') diff --git a/pkg/gui/controllers/helpers/update_helper.go b/pkg/gui/controllers/helpers/update_helper.go index a9a49f0f4..ea9be8f16 100644 --- a/pkg/gui/controllers/helpers/update_helper.go +++ b/pkg/gui/controllers/helpers/update_helper.go @@ -18,7 +18,7 @@ func NewUpdateHelper(c *HelperCommon, updater *updates.Updater) *UpdateHelper { } } -func (self *UpdateHelper) CheckForUpdateInBackground() error { +func (self *UpdateHelper) CheckForUpdateInBackground() { self.updater.CheckForNewUpdate(func(newVersion string, err error) error { if err != nil { // ignoring the error for now so that I'm not annoying users @@ -34,8 +34,6 @@ func (self *UpdateHelper) CheckForUpdateInBackground() error { } return self.showUpdatePrompt(newVersion) }, false) - - return nil } func (self *UpdateHelper) CheckForUpdateInForeground() error { diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 22f0c748a..d46d21a3e 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -827,15 +827,6 @@ func (gui *Gui) onUIThread(f func() error) { }) } -func (gui *Gui) startBackgroundRoutines() { - mgr := &BackgroundRoutineMgr{gui: gui} - mgr.startBackgroundRoutines() -} - func (gui *Gui) getWindowDimensions(informationStr string, appStatus string) map[string]boxlayout.Dimensions { return gui.helpers.WindowArrangement.GetWindowDimensions(informationStr, appStatus) } - -func (gui *Gui) popContext() error { - return gui.State.ContextMgr.Pop() -} diff --git a/pkg/gui/main_panels.go b/pkg/gui/main_panels.go index 3c6295725..e7c87c5e5 100644 --- a/pkg/gui/main_panels.go +++ b/pkg/gui/main_panels.go @@ -146,7 +146,3 @@ func (gui *Gui) refreshMainViews(opts types.RefreshMainOpts) error { func (gui *Gui) splitMainPanel(splitMainPanel bool) { gui.State.SplitMainPanel = splitMainPanel } - -func (gui *Gui) isMainPanelSplit() bool { - return gui.State.SplitMainPanel -} diff --git a/pkg/gui/services/custom_commands/session_state_loader.go b/pkg/gui/services/custom_commands/session_state_loader.go index 2ef7a44bd..3566841b7 100644 --- a/pkg/gui/services/custom_commands/session_state_loader.go +++ b/pkg/gui/services/custom_commands/session_state_loader.go @@ -9,7 +9,6 @@ import ( // in the custom command's template strings type SessionStateLoader struct { c *helpers.HelperCommon - helpers *helpers.Helpers refsHelper *helpers.RefsHelper } -- cgit v1.2.3