Commit 8fbe07c208c126ce38d8d97079ef34df4a41cbc6

Steven McDonald 2019-09-22T15:58:49

Remove unused variable in diffreg's fetch()

diff --git a/lib/diffreg.c b/lib/diffreg.c
index 42c18ec..9f0da90 100644
--- a/lib/diffreg.c
+++ b/lib/diffreg.c
@@ -994,7 +994,7 @@ static int
 fetch(FILE *outfile, struct got_diff_state *ds, struct got_diff_args *args,
     long *f, int a, int b, FILE *lb, int ch, int flags)
 {
-	int i, j, c, lastc, col, nc;
+	int i, j, c, col, nc;
 
 	if (a > b)
 		return (0);
@@ -1010,7 +1010,7 @@ fetch(FILE *outfile, struct got_diff_state *ds, struct got_diff_args *args,
 				diff_output(outfile, " ");
 		}
 		col = 0;
-		for (j = 0, lastc = '\0'; j < nc; j++, lastc = c) {
+		for (j = 0; j < nc; j++) {
 			if ((c = getc(lb)) == EOF) {
 				diff_output(outfile, "\n\\ No newline at end of "
 				    "file\n");