From 1174b613b6140abe6cd2de11396185a3d63a4dd6 Mon Sep 17 00:00:00 2001 From: Thomas White Date: Thu, 21 Apr 2016 22:18:59 +0200 Subject: Remove scblock->prev --- src/sc_parse.c | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) (limited to 'src/sc_parse.c') diff --git a/src/sc_parse.c b/src/sc_parse.c index 95b5c76..edad176 100644 --- a/src/sc_parse.c +++ b/src/sc_parse.c @@ -41,7 +41,6 @@ struct _scblock char *contents; SCBlock *next; - SCBlock *prev; SCBlock *child; }; @@ -103,11 +102,8 @@ SCBlock *sc_block_append(SCBlock *bl, char *name, char *opt, char *contents, bln->child = NULL; bln->next = NULL; - if ( bl == NULL ) { - bln->prev = NULL; - } else { + if ( bl != NULL ) { bl->next = bln; - bln->prev = bl; } if ( (blfp != NULL) && (*blfp == NULL) ) { @@ -162,11 +158,6 @@ SCBlock *sc_block_append_inside(SCBlock *parent, bln->child = NULL; bln->next = NULL; - if ( bl == NULL ) { - bln->prev = NULL; - } else { - bln->prev = bl; - } *ptr = bln; return bln; -- cgit v1.2.3