diff options
| author | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-06 18:11:56 -0400 |
|---|---|---|
| committer | Ralph Amissah <ralph.amissah@gmail.com> | 2026-09-09 17:07:32 -0400 |
| commit | 204afb453c630bba44fdc975d4186922a4331299 (patch) | |
| tree | 6607f4b97c14f6803b8bcc3b6be0296710cf3589 /src/sisudoc | |
| parent | sisu markup sample .sst edits (diff) | |
ocda: remove dead fields
remove four dead fields, two of them serialised, none of the
them were assigned (or called for reading).
(assisted by Claude-Code)
Diffstat (limited to 'src/sisudoc')
| -rw-r--r-- | src/sisudoc/ocda/abstraction/ssp.d | 18 | ||||
| -rw-r--r-- | src/sisudoc/ocda/meta/metadoc_object_setter.d | 9 | ||||
| -rw-r--r-- | src/sisudoc/outputs/io_out/create_abstraction_db.d | 2 | ||||
| -rw-r--r-- | src/sisudoc/outputs/io_out/sqlite.d | 5 |
4 files changed, 16 insertions, 18 deletions
diff --git a/src/sisudoc/ocda/abstraction/ssp.d b/src/sisudoc/ocda/abstraction/ssp.d index 5f510f3..fc7dbd3 100644 --- a/src/sisudoc/ocda/abstraction/ssp.d +++ b/src/sisudoc/ocda/abstraction/ssp.d @@ -315,9 +315,9 @@ template spineAbstractionTxt() { if (obj.metainfo.object_number_off) { output ~= ".ocn_off: true"; } - if (obj.metainfo.o_n_type != 0) { - output ~= ".o_n_type: " ~ obj.metainfo.o_n_type.to!string; - } + // if (obj.metainfo.o_n_type != 0) { + // output ~= ".o_n_type: " ~ obj.metainfo.o_n_type.to!string; + // } if (obj.metainfo.is_of_type.length > 0) { output ~= ".is_of_type: " ~ obj.metainfo.is_of_type; } @@ -403,15 +403,15 @@ template spineAbstractionTxt() { if (obj.table.heading) { output ~= ".table_header: true"; } - if (obj.table.walls) { - output ~= ".table_walls: true"; - } + // if (obj.table.walls) { + // output ~= ".table_walls: true"; + // } } /+ ↓ code block properties +/ if (obj.metainfo.is_a == "code") { - if (obj.code_block.syntax.length > 0) { - output ~= ".code_syntax: " ~ obj.code_block.syntax; - } + // if (obj.code_block.syntax.length > 0) { + // output ~= ".code_syntax: " ~ obj.code_block.syntax; + // } if (obj.code_block.linenumbers) { output ~= ".code_linenumbers: true"; } diff --git a/src/sisudoc/ocda/meta/metadoc_object_setter.d b/src/sisudoc/ocda/meta/metadoc_object_setter.d index a1f6a86..e7ff88b 100644 --- a/src/sisudoc/ocda/meta/metadoc_object_setter.d +++ b/src/sisudoc/ocda/meta/metadoc_object_setter.d @@ -74,10 +74,10 @@ template ObjectSetter() { double[] column_widths = []; string[] column_aligns = []; bool heading = false; - bool walls = false; + // bool walls = false; } struct DocObj_CodeBlock_ { - string syntax = ""; + // string syntax = ""; bool linenumbers = false; } struct DocObj_Stow_ { @@ -171,11 +171,10 @@ template ObjectSetter() { bool object_number_off = false; bool visible_object_number = false; int object_number_type = 0; // { ocn, non, bkidx } - /+ node +/ - string[string][string] node; + // string[string][string] node; int ocn = 0; string identifier = ""; - int o_n_type = 0; + // int o_n_type = 0; int heading_lev_markup = 9; int heading_lev_collapsed = 9; bool dummy_heading = false; diff --git a/src/sisudoc/outputs/io_out/create_abstraction_db.d b/src/sisudoc/outputs/io_out/create_abstraction_db.d index 0b6b633..ba83736 100644 --- a/src/sisudoc/outputs/io_out/create_abstraction_db.d +++ b/src/sisudoc/outputs/io_out/create_abstraction_db.d @@ -333,7 +333,7 @@ template spineAbstractionDb() { { import std.typecons : Nullable; if (obj.metainfo.is_a == "code") { - bindStr(":code_syntax", obj.code_block.syntax); + bindStr(":code_syntax", obj.metainfo.syntax); obj_stmt.bind(":code_linenumbers", obj.code_block.linenumbers ? 1 : 0); } else { obj_stmt.bind(":code_syntax", Nullable!string()); diff --git a/src/sisudoc/outputs/io_out/sqlite.d b/src/sisudoc/outputs/io_out/sqlite.d index 2b0b6d5..f96846d 100644 --- a/src/sisudoc/outputs/io_out/sqlite.d +++ b/src/sisudoc/outputs/io_out/sqlite.d @@ -1123,7 +1123,7 @@ template SQLiteTablesReCreate() { is_of_type VARCHAR(16), is_a VARCHAR(16), lev SMALLINT NULL, - node VARCHAR(16) NULL, + node VARCHAR(16) NULL, -- not written to parent VARCHAR(16) NULL, last_descendant VARCHAR(16) NULL, -- headings only digest_clean CHAR(256), @@ -1488,7 +1488,6 @@ template SQLiteInsertDocObjectsLoop() { "; collapsed: ", obj.metainfo.heading_lev_collapsed, "> ", obj.metainfo.dom_structure_collapsed_tags_status, "; ocn: ", obj.metainfo.ocn, - " node: ", obj.metainfo.node, "; parent: ", obj.metainfo.parent_lev_markup, "; ocn: ", obj.metainfo.parent_ocn, "; ", @@ -1636,7 +1635,7 @@ template SQLiteTablesCreate() { is_of_type VARCHAR(16), is_a VARCHAR(16), lev SMALLINT NULL, - node VARCHAR(16) NULL, + node VARCHAR(16) NULL, -- not written to parent VARCHAR(16) NULL, last_descendant VARCHAR(16) NULL, -- headings only digest_clean CHAR(256), |
