ls-tree: remove commented-out code

Remove code added in f35a6d3bce7 (Teach core object handling functions about gitlinks, 2007-04-09), later patched in 7d0b18a4da1 (Add output flushing before fork(), 2008-08-04), and then finally ending up in its current form in d3bee161fef (tree.c: allow read_tree_recursive() to traverse gitlink entries, 2009-01-25). All while being commented-out! Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Ævar Arnfjörð Bjarmason committed Mar 23, 2022 at 17:13 UTC 4e4566f67e9433b7b0f475c4f16e1fe77fb527f4
1 file changed -9
builtin/ls-tree.c
-9
@@ -69,15 +69,6 @@ static int show_tree(const struct object_id *oid, struct strbuf *base,
69 const char *type = blob_type;
70
71 if (S_ISGITLINK(mode)) {
72 - /*
73 - * Maybe we want to have some recursive version here?
74 - *
75 - * Something similar to this incomplete example:
76 - *
77 - if (show_subprojects(base, baselen, pathname))
78 - retval = READ_TREE_RECURSIVE;
79 - *
80 - */
72 type = commit_type;
73 } else if (S_ISDIR(mode)) {
74 if (show_recursive(base->buf, base->len, pathname)) {