From 78c9d8467dd45f72d74c6b2bdae70bde58a88251 Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sat, 17 Apr 2021 02:24:51 -0700 Subject: [PATCH] remove the unused root first/last from parse ctx --- docs/metadesk_reference.md | 2 -- source/md.h | 2 -- source/md_impl.c | 1 - 3 files changed, 5 deletions(-) diff --git a/docs/metadesk_reference.md b/docs/metadesk_reference.md index 8f51748..67a39fb 100644 --- a/docs/metadesk_reference.md +++ b/docs/metadesk_reference.md @@ -432,8 +432,6 @@ main: @send(Parsing) @struct MD_ParseCtx: { - first_root: *MD_Node, - last_root: *MD_Node, first_error: *MD_Error, last_error: *MD_Error, at: *MD_u8, diff --git a/source/md.h b/source/md.h index 04c8e05..7e7f6e6 100644 --- a/source/md.h +++ b/source/md.h @@ -507,8 +507,6 @@ enum typedef struct MD_ParseCtx MD_ParseCtx; struct MD_ParseCtx { - MD_Node *first_root; - MD_Node *last_root; MD_Error *first_error; MD_Error *last_error; MD_u8 *at; diff --git a/source/md_impl.c b/source/md_impl.c index 7c1fe10..5fbf137 100644 --- a/source/md_impl.c +++ b/source/md_impl.c @@ -1139,7 +1139,6 @@ MD_FUNCTION_IMPL MD_ParseCtx MD_Parse_InitializeCtx(MD_String8 filename, MD_String8 contents) { MD_ParseCtx ctx = MD_ZERO_STRUCT; - ctx.first_root = ctx.last_root = MD_NilNode(); ctx.at = contents.str; ctx.file_contents = contents; ctx.filename = filename;