]> git.ipfire.org Git - thirdparty/git.git/commit
cbtree: remove broken and unused cb_unlink
authorEric Wong <e@80x24.org>
Tue, 7 Dec 2021 18:38:10 +0000 (18:38 +0000)
committerJunio C Hamano <gitster@pobox.com>
Tue, 7 Dec 2021 23:18:35 +0000 (15:18 -0800)
commit2c68f577fc8a400f4d354f4700e4809c1bfd6470
treeda5158980e4999518393365b8d60c499e988afc2
parente9d7761bb94f20acc98824275e317fa82436c25d
cbtree: remove broken and unused cb_unlink

cb_unlink is broken once a node is no longer self-referential
due to subsequent insertions.  This is a consequence of an
intrusive implementation and I'm not sure if it's easily fixable
while retaining our cache-friendly intrusive property (I've
tried for several hours in another project).

In any case, we're not using cb_unlink anywhere in our codebase,
just get rid of it to avoid misleading future readers.

Signed-off-by: Eric Wong <e@80x24.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
cbtree.c
cbtree.h