summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2017-10-23 06:33:31 -0700
committerKaz Kylheku <kaz@kylheku.com>2017-10-23 06:33:31 -0700
commit59721ee4879015c9f1e3025ab3d1a5db8550f284 (patch)
tree35017e95c8401939249db8a41afe9197f9bf41ab
parent048190bf534f59e77b2d488235a55f1c7719f009 (diff)
downloadtxr-59721ee4879015c9f1e3025ab3d1a5db8550f284.tar.gz
txr-59721ee4879015c9f1e3025ab3d1a5db8550f284.tar.bz2
txr-59721ee4879015c9f1e3025ab3d1a5db8550f284.zip
hash: remove pointless nullify ops.
* hash.c (hash_assoc, hash_assql): Remove useless nullify calls. These are copy and paste leftovers, since these functions were based on assoc and assql, which handle sequences other than lists.
-rw-r--r--hash.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/hash.c b/hash.c
index 7198c2dc..8d3f2b37 100644
--- a/hash.c
+++ b/hash.c
@@ -567,8 +567,6 @@ static void hash_grow(struct hash *h, val hash)
static val hash_assoc(val key, cnum hash, val list)
{
- list = nullify(list);
-
while (list) {
val elem = car(list);
if (elem->ch.hash == hash && equal(car(elem), key))
@@ -581,8 +579,6 @@ static val hash_assoc(val key, cnum hash, val list)
static val hash_assql(val key, cnum hash, val list)
{
- list = nullify(list);
-
while (list) {
val elem = car(list);
if (elem->ch.hash == hash && eql(car(elem), key))