diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-10-23 06:33:31 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-10-23 06:33:31 -0700 |
commit | 59721ee4879015c9f1e3025ab3d1a5db8550f284 (patch) | |
tree | 35017e95c8401939249db8a41afe9197f9bf41ab | |
parent | 048190bf534f59e77b2d488235a55f1c7719f009 (diff) | |
download | txr-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.c | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -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)) |