aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTeddy <[email protected]>2013-08-11 13:12:58 +0800
committerTeddy <[email protected]>2013-08-11 13:12:58 +0800
commit6ee68e0b6ac242c242e2c057ba583974ce47bed9 (patch)
tree7e82248fa758ab2f95b1757fd92cb130f698a56f
parent81844497e621997c527ceedd722854966bd098e0 (diff)
removed unecessary `next` initialization
-rw-r--r--parser.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/parser.cpp b/parser.cpp
index b27a8dc..333311e 100644
--- a/parser.cpp
+++ b/parser.cpp
@@ -159,8 +159,6 @@ Pair *ASTGenerator::absorb(Tokenizor *tk) {
top_ptr -= 2;
Pair *lst_cdr = new Pair(TO_EVAL(*(top_ptr + 1)), empty_list);
Pair *lst = new Pair(new SymObj("quote"), lst_cdr);
- lst->next = lst_cdr;
- lst_cdr->next = NULL;
*top_ptr++ = lst;
}
}
@@ -196,7 +194,6 @@ Pair *ASTGenerator::absorb(Tokenizor *tk) {
else
{
Pair *_lst = new Pair(obj, lst); // Collect the list
- _lst->next = lst->is_pair_obj() ? TO_PAIR(lst) : NULL;
lst = _lst;
}
}