refactor(diff): remove unreachable code (#33149)

This commit is contained in:
zeertzjq
2025-03-29 11:01:57 +08:00
committed by GitHub
parent 2681e1fce3
commit 6ef5dd5266

View File

@ -3214,10 +3214,6 @@ bool diff_find_change(win_T *wp, linenr_T lnum, diffline_T *diffline)
return false;
}
if (lnum - dp->df_lnum[idx] > INT_MAX) {
// Integer overflow protection
return false;
}
int off = lnum - dp->df_lnum[idx];
if (!(diff_flags & ALL_INLINE_DIFF)) {