From 6ee68e0b6ac242c242e2c057ba583974ce47bed9 Mon Sep 17 00:00:00 2001 From: Teddy Date: Sun, 11 Aug 2013 13:12:58 +0800 Subject: removed unecessary `next` initialization --- parser.cpp | 3 --- 1 file changed, 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; } } -- cgit v1.2.3-70-g09d2