From 04c2f66cae1015899cb690189aaa4162330737f2 Mon Sep 17 00:00:00 2001 From: Kaz Kylheku Date: Tue, 11 Jun 2019 19:25:34 -0700 Subject: hash: remove unnecessary test. * hash.c (hash_next): We know after the loop that hi->cons is not nil, because the loop contains no break, and is guarded by hi->cons being nil. --- hash.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'hash.c') diff --git a/hash.c b/hash.c index 857cd3c4..fcabb5bd 100644 --- a/hash.c +++ b/hash.c @@ -970,7 +970,7 @@ val hash_next(val iter) } set(mkloc(hi->cons, iter), vecref(h->table, num_fast(hi->chain))); } - return if2(hi->cons, us_car(hi->cons)); + return us_car(hi->cons); } val maphash(val fun, val hash) -- cgit v1.2.3