From 595c6d275ef119c42dbb13a99dd676d07d096cf0 Mon Sep 17 00:00:00 2001 From: Fufu Fang Date: Tue, 3 Oct 2023 23:07:50 +0100 Subject: [PATCH] Remove spurious code Remote spurious code flagged by 8451da6ac77e602dd042051d6afc3fe944fefb2c, which was introduced by e76b079fe6951ea28acdc700069b9d33e9f69c7a Closes https://github.com/fangfufu/httpdirfs/issues/124 --- src/link.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/src/link.c b/src/link.c index 8033951..b2694c9 100644 --- a/src/link.c +++ b/src/link.c @@ -406,20 +406,6 @@ static void HTML_to_LinkTable(const char *url, GumboNode *node, * This is to prevent duplicated link, if an Apache server has the * IconsAreLinks option. */ - /* The following four lines of code have no effect so I've commented - them out. I'm not removing them entirely because it's possible the - original intent was to do a check of some sort here and it's an - error that this check wasn't fully implemented, in which case this - commented out code and the comment above it should serve as a - reminder to whoever originally wrote it that there's something - unfinished here that needs to be finished. - */ - /* - size_t comp_len = strnlen(link_url, MAX_FILENAME_LEN); - if (type == LINK_DIR) { - comp_len--; - } - */ if (((type == LINK_DIR) || (type == LINK_UNINITIALISED_FILE)) && !linknames_equal(linktbl->links[linktbl->num - 1]->linkname, link_url)) {