diff options
author | Teddy <[email protected]> | 2013-08-11 13:12:58 +0800 |
---|---|---|
committer | Teddy <[email protected]> | 2013-08-11 13:12:58 +0800 |
commit | 6ee68e0b6ac242c242e2c057ba583974ce47bed9 (patch) | |
tree | 7e82248fa758ab2f95b1757fd92cb130f698a56f | |
parent | 81844497e621997c527ceedd722854966bd098e0 (diff) |
removed unecessary `next` initialization
-rw-r--r-- | parser.cpp | 3 |
1 files changed, 0 insertions, 3 deletions
@@ -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; } } |