From 29fc46dc62dbcab4dfee6ba6b3cbc8f2f2deecd8 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Mon, 7 Jul 2025 11:40:32 +0200 Subject: [PATCH] Cleanup: remove unused method Focus from PatchExplorerContext --- pkg/gui/context/patch_explorer_context.go | 5 ----- pkg/gui/types/context.go | 1 - 2 files changed, 6 deletions(-) diff --git a/pkg/gui/context/patch_explorer_context.go b/pkg/gui/context/patch_explorer_context.go index c9144e1ab..79d585a12 100644 --- a/pkg/gui/context/patch_explorer_context.go +++ b/pkg/gui/context/patch_explorer_context.go @@ -94,11 +94,6 @@ func (self *PatchExplorerContext) Render() { self.c.Render() } -func (self *PatchExplorerContext) Focus() { - self.FocusSelection() - self.c.Render() -} - func (self *PatchExplorerContext) setContent() { self.GetView().SetContent(self.GetContentToRender()) } diff --git a/pkg/gui/types/context.go b/pkg/gui/types/context.go index 1c9759486..bbca0147a 100644 --- a/pkg/gui/types/context.go +++ b/pkg/gui/types/context.go @@ -192,7 +192,6 @@ type IPatchExplorerContext interface { GetIncludedLineIndices() []int RenderAndFocus() Render() - Focus() GetContentToRender() string NavigateTo(selectedLineIdx int) GetMutex() *deadlock.Mutex