commit fde10ecc4ef37b7c29031d155b9b19a9b48565f3
parent 56bc74fb98209884164d887734457adcf79fbe90
Author: Wilson Gheen <wilson@wilsonrgheen.com>
Date: Fri, 13 Jan 2023 15:45:23 -0600
Remove unused line_no variable
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/photomosaics.c b/photomosaics.c
@@ -165,7 +165,7 @@ static ssize_t cache_grep(char *key) {
char filename[MAX_FN_LEN];
struct stat file_st;
- for(ssize_t i=0, line_no=1; i < cache_size; i += indof(cache_buf + i, '\n', cache_size - i) + 1, line_no++) {
+ for(ssize_t i=0; i < cache_size; i += indof(cache_buf + i, '\n', cache_size - i) + 1) {
/* If we already marked it for deletion, we want the image's cache entry which
we put at the bottom of the buffer, in case the avg color has changed. */
bool skip = false;