From 2f1564d2883034b56f6e9caaf0f21b347af09bd2 Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Fri, 18 Oct 2024 17:29:39 +0200 Subject: [PATCH] Cleanup: remove unused method RangeStartLineIdx --- pkg/gui/patch_exploring/state.go | 8 -------- 1 file changed, 8 deletions(-) diff --git a/pkg/gui/patch_exploring/state.go b/pkg/gui/patch_exploring/state.go index 4c20b7a51..1898a032d 100644 --- a/pkg/gui/patch_exploring/state.go +++ b/pkg/gui/patch_exploring/state.go @@ -276,11 +276,3 @@ func (s *State) CalculateOrigin(currentOrigin int, bufferHeight int, numLines in return calculateOrigin(currentOrigin, bufferHeight, numLines, firstLineIdx, lastLineIdx, s.GetSelectedLineIdx(), s.selectMode) } - -func (s *State) RangeStartLineIdx() (int, bool) { - if s.selectMode == RANGE { - return s.rangeStartLineIdx, true - } - - return 0, false -}