Skip to content

Commit 595c6d2

Browse files
committed
Remove spurious code
Remote spurious code flagged by 8451da6, which was introduced by e76b079 Closes #124
1 parent bd33966 commit 595c6d2

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

src/link.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -406,20 +406,6 @@ static void HTML_to_LinkTable(const char *url, GumboNode *node,
406406
* This is to prevent duplicated link, if an Apache server has the
407407
* IconsAreLinks option.
408408
*/
409-
/* The following four lines of code have no effect so I've commented
410-
them out. I'm not removing them entirely because it's possible the
411-
original intent was to do a check of some sort here and it's an
412-
error that this check wasn't fully implemented, in which case this
413-
commented out code and the comment above it should serve as a
414-
reminder to whoever originally wrote it that there's something
415-
unfinished here that needs to be finished.
416-
*/
417-
/*
418-
size_t comp_len = strnlen(link_url, MAX_FILENAME_LEN);
419-
if (type == LINK_DIR) {
420-
comp_len--;
421-
}
422-
*/
423409
if (((type == LINK_DIR) || (type == LINK_UNINITIALISED_FILE)) &&
424410
!linknames_equal(linktbl->links[linktbl->num - 1]->linkname,
425411
link_url)) {

0 commit comments

Comments
 (0)