Skip to content

Commit

Permalink
Remove spurious code
Browse files Browse the repository at this point in the history
Remote spurious code flagged by 8451da6,
which was introduced by e76b079
Closes #124
  • Loading branch information
fangfufu committed Oct 3, 2023
1 parent bd33966 commit 595c6d2
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/link.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 595c6d2

Please sign in to comment.