commit 13c0d6111bd58f09591d173af6a065d0efb7c3d3
parent 43dc5e539e8e84582ae74e854a91d640dca413f9
Author: Jacob R. Edwards <jacobouno@protonmail.com>
Date: Mon, 21 Dec 2020 13:56:29 -0800
Remove dead code
Diffstat:
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/main.c b/main.c
@@ -476,7 +476,7 @@ cfetch(int argc, const char **argv, const char *cache, const char *host, const c
error = 0;
goto cleanup;
}
- warnx("index too large");
+ warnx("%d: Out of range.", index);
cleanup:
#ifdef FETCH_MESSAGE
if (!error)
@@ -485,11 +485,6 @@ cleanup:
free(line);
if (wfclose(fp) || error)
return 1;
- if (i < index) {
- warnx("%d: Out of range.", i);
- return 1;
- }
-
return 0;
}