cmark

My personal build of CMark ✏️

Commit
71e14bb77b1bceca3cf6e48d4b074e74c046ed04
Parent
37b536cf8dc3d52d354e5c2b79befddea60f4844
Author
John MacFarlane <jgm@berkeley.edu>
Date

Removed unused emphasis_nestlevel.

Diffstat

1 file changed, 0 insertions, 4 deletions

Status File Name N° Changes Insertions Deletions
Modified src/inlines.c 4 0 4
diff --git a/src/inlines.c b/src/inlines.c
@@ -25,7 +25,6 @@ typedef struct Subject {
 	int label_nestlevel;
 	reference_map *refmap;
 	opener_stack *openers;
-	int emphasis_nestlevel;
 } subject;
 
 static node_inl *parse_chunk_inlines(chunk *chunk, reference_map *refmap);
@@ -199,7 +198,6 @@ static void subject_from_buf(subject *e, strbuf *buffer, reference_map *refmap)
 	e->label_nestlevel = 0;
 	e->refmap = refmap;
 	e->openers = NULL;
-	e->emphasis_nestlevel = 0;
 
 	chunk_rtrim(&e->input);
 }
@@ -213,7 +211,6 @@ static void subject_from_chunk(subject *e, chunk *chunk, reference_map *refmap)
 	e->label_nestlevel = 0;
 	e->refmap = refmap;
 	e->openers = NULL;
-	e->emphasis_nestlevel = 0;
 
 	chunk_rtrim(&e->input);
 }
@@ -333,7 +330,6 @@ static void free_openers(subject* subj, opener_stack* istack)
 	while (subj->openers != istack) {
 		tempstack = subj->openers;
 		subj->openers = subj->openers->previous;
-		subj->emphasis_nestlevel--;
 		free(tempstack);
 	}
 }