]> git.ipfire.org Git - thirdparty/git.git/commit
xdiff: delete superfluous function xdl_get_rec() in xemit
authorEzekiel Newren <ezekielnewren@gmail.com>
Fri, 26 Sep 2025 22:41:51 +0000 (22:41 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 30 Sep 2025 21:12:39 +0000 (14:12 -0700)
commit7bdeb3afad908e52baab6e58397423aa2d2f3d29
tree2c0b8af84934872bb305dde420157192ec8cc2c5
parentefaf553b1a4ea9cafcb9cab0697157091bc4825a
xdiff: delete superfluous function xdl_get_rec() in xemit

When xrecord_t was a linked list, and recs didn't exist, I assume this
function walked the list until it found the right record. Accessing
a contiguous array is so trivial that this function is now superfluous.
Delete it.

Signed-off-by: Ezekiel Newren <ezekielnewren@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
xdiff/xemit.c