Skip to content

Commit 8e34378

Browse files
committed
refactor: remove unused lastChangedHunkIndex wrapper
1 parent 20f4124 commit 8e34378

1 file changed

Lines changed: 0 additions & 11 deletions

File tree

internal/ui/follow.go

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,6 @@ func changedHunkIndices(oldSigs []uint64, newHunks []internal.DiffHunk) []int {
4040
return changed
4141
}
4242

43-
// lastChangedHunkIndex keeps legacy callers compiling until model follow logic
44-
// switches to highlighted-hunk state in a later TDD step.
45-
func lastChangedHunkIndex(oldSigs []uint64, newHunks []internal.DiffHunk) int {
46-
changed := changedHunkIndices(oldSigs, newHunks)
47-
if len(changed) == 0 {
48-
return -1
49-
}
50-
51-
return changed[len(changed)-1]
52-
}
53-
5443
// hunkVisualOffset counts rendered rows before hunkIdx for follow-mode scrolling.
5544
func hunkVisualOffset(file *internal.FileDiff, hunkIdx, width int) int {
5645
if file == nil || hunkIdx <= 0 {

0 commit comments

Comments
 (0)