diff options
author | Thomas White <taw@bitwiz.org.uk> | 2015-08-16 17:50:07 +0200 |
---|---|---|
committer | Thomas White <taw@bitwiz.org.uk> | 2015-08-16 17:50:07 +0200 |
commit | 4534e5af52a226327590b3c19a010a460212427a (patch) | |
tree | c4749cd036cdf0e1fb7d2139836b6934b5d2c239 /src/sc_parse.c | |
parent | a54c8fae031aa34b6286e8f08fc4861681d24200 (diff) |
Remove sc_block_frame() crap
Diffstat (limited to 'src/sc_parse.c')
-rw-r--r-- | src/sc_parse.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/sc_parse.c b/src/sc_parse.c index 4aab2af..89253f6 100644 --- a/src/sc_parse.c +++ b/src/sc_parse.c @@ -43,9 +43,6 @@ struct _scblock SCBlock *next; SCBlock *prev; SCBlock *child; - SCBlock *macro_child; - - struct frame *fr; }; @@ -56,8 +53,6 @@ SCBlock *sc_block_new() bl = calloc(1, sizeof(SCBlock)); if ( bl == NULL ) return NULL; - bl->macro_child = NULL; - return bl; } @@ -74,18 +69,6 @@ SCBlock *sc_block_child(const SCBlock *bl) } -SCBlock *sc_block_macro_child(const SCBlock *bl) -{ - return bl->macro_child; -} - - -void sc_block_set_macro_child(SCBlock *bl, SCBlock *mchild) -{ - bl->macro_child = mchild; -} - - const char *sc_block_name(const SCBlock *bl) { return bl->name; @@ -104,18 +87,6 @@ const char *sc_block_contents(const SCBlock *bl) } -struct frame *sc_block_frame(const SCBlock *bl) -{ - return bl->fr; -} - - -void sc_block_set_frame(SCBlock *bl, struct frame *fr) -{ - bl->fr = fr; -} - - /* Insert a new block after "bl". "name", "options" and "contents" * will not be copied. Returns the block just created, or NULL on error. * If *blfp points to NULL, it will updated to point at the new block. */ @@ -335,7 +306,6 @@ void show_sc_block(const SCBlock *bl, const char *prefix) if ( bl->name != NULL ) printf("\\%s ", bl->name); if ( bl->options != NULL ) printf("[%s] ", bl->options); if ( bl->contents != NULL ) printf("{%s} ", bl->contents); - if ( bl->fr != NULL ) printf("-> frame %p", bl->fr); printf("\n"); if ( bl->child != NULL ) { |