diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2015-11-28 08:52:32 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2015-11-28 08:52:32 -0800 |
commit | 395240290e1db914b209a6d1f76f19bd3acd118f (patch) | |
tree | 95c07af2babf16140c7915d2a020954bd5ca19c3 /parser.y | |
parent | f12e29102e8be57c4345614fe491685e99c683e8 (diff) | |
download | txr-395240290e1db914b209a6d1f76f19bd3acd118f.tar.gz txr-395240290e1db914b209a6d1f76f19bd3acd118f.tar.bz2 txr-395240290e1db914b209a6d1f76f19bd3acd118f.zip |
Remove useless test from rlcp_tree.
* parser.y (rlcp_tree): Remove redunant test, around the for
loop, of a condition which is the same as its guard condition.
Diffstat (limited to 'parser.y')
-rw-r--r-- | parser.y | 9 |
1 files changed, 4 insertions, 5 deletions
@@ -1376,11 +1376,10 @@ val rlrec(parser_t *parser, val form, val line) val rlcp_tree(val to, val from) { val ret = to; - if (consp(to)) { - for (; consp(to); to = cdr(to)) { - rlcp(to, from); - rlcp_tree(car(to), from); - } + + for (; consp(to); to = cdr(to)) { + rlcp(to, from); + rlcp_tree(car(to), from); } return ret; } |