From 37bae77e09df3a50947dd445acbcd19afa4ce17c Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Wed, 6 May 2020 19:37:07 -0400 Subject: doc structure hash removed, replaced, unused - doc abstraction changes (use of new associative array named "pith" with enum) replaces the redundant doc structure associative array --- src/doc_reform/io_in/read_source_files.d | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'src/doc_reform/io_in') diff --git a/src/doc_reform/io_in/read_source_files.d b/src/doc_reform/io_in/read_source_files.d index 349729d..dfb9b2c 100644 --- a/src/doc_reform/io_in/read_source_files.d +++ b/src/doc_reform/io_in/read_source_files.d @@ -173,41 +173,29 @@ template spineRawMarkupContent() { char[][] markup_sourcefile_insert_content, string fn_src ) { - mixin spineRgxDocStructFlags; char[][] contents_insert; int code_block_status = 0; enum codeBlock { off, curly, tic, } - int[string] type = flags_type_init; auto fn_pth_full = fn_src.match(rgx.src_pth_sst_or_ssm); auto markup_src_file_path = fn_pth_full.captures[1]; foreach (line; markup_sourcefile_insert_content) { if (code_block_status == codeBlock.curly) { - type["header_make"] = 0; - type["header_meta"] = 0; if (line.matchFirst(rgx.block_curly_code_close)) { code_block_status = codeBlock.off; } contents_insert ~= line; } else if (line.matchFirst(rgx.block_curly_code_open)) { code_block_status = codeBlock.curly; - type["header_make"] = 0; - type["header_meta"] = 0; contents_insert ~= line; } else if (code_block_status == codeBlock.tic) { - type["header_make"] = 0; - type["header_meta"] = 0; if (line.matchFirst(rgx.block_tic_close)) { code_block_status = codeBlock.off; } contents_insert ~= line; } else if (line.matchFirst(rgx.block_tic_code_open)) { code_block_status = codeBlock.tic; - type["header_make"] = 0; - type["header_meta"] = 0; contents_insert ~= line; } else if (auto m = line.match(rgx.insert_src_fn_ssi_or_sst)) { - type["header_make"] = 0; - type["header_meta"] = 0; auto insert_fn = m.captures[2]; auto insert_sub_pth = m.captures[1]; auto fn_src_insert @@ -238,8 +226,6 @@ template spineRawMarkupContent() { - build image list, search for any image files to add to image list +/ } else { - type["header_make"] = 0; - type["header_meta"] = 0; contents_insert ~= line; // images to extract for image list? if (_opt_action.source || _opt_action.pod) { string[] _image_linelist = _extract_images(line); @@ -261,7 +247,6 @@ template spineRawMarkupContent() { string fn_src ) { import std.algorithm; - mixin spineRgxDocStructFlags; char[][] contents; int code_block_status = 0; enum codeBlock { off, curly, tic, } -- cgit v1.2.3