summaryrefslogtreecommitdiffstats
path: root/hash.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-06-11 19:25:34 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-06-11 19:25:34 -0700
commit04c2f66cae1015899cb690189aaa4162330737f2 (patch)
tree6760688f51452ed2d3ce18a3178119d350544def /hash.c
parent071c281c7f2652726ba123a917903c77f2144fa0 (diff)
downloadtxr-04c2f66cae1015899cb690189aaa4162330737f2.tar.gz
txr-04c2f66cae1015899cb690189aaa4162330737f2.tar.bz2
txr-04c2f66cae1015899cb690189aaa4162330737f2.zip
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.
Diffstat (limited to 'hash.c')
-rw-r--r--hash.c2
1 files changed, 1 insertions, 1 deletions
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)