diff options
author | Ralph Amissah <ralph@amissah.com> | 2018-07-08 12:42:44 -0400 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2019-04-10 15:14:15 -0400 |
commit | b37b6ca37e7922ad38e712632b1c5ce358e81a7d (patch) | |
tree | 3020fe7afd6518d23e1ee97b34c67c98fc6f0955 /src | |
parent | cosmetic (diff) |
reconsider unecessary "return ref"
Diffstat (limited to 'src')
-rw-r--r-- | src/sdp/meta/metadoc_summary.d | 4 | ||||
-rw-r--r-- | src/sdp/output/epub3.d | 4 | ||||
-rw-r--r-- | src/sdp/output/html.d | 10 | ||||
-rw-r--r-- | src/sdp/output/sqlite.d | 46 | ||||
-rw-r--r-- | src/sdp/output/xmls.d | 62 |
5 files changed, 63 insertions, 63 deletions
diff --git a/src/sdp/meta/metadoc_summary.d b/src/sdp/meta/metadoc_summary.d index f278f90..2ac2454 100644 --- a/src/sdp/meta/metadoc_summary.d +++ b/src/sdp/meta/metadoc_summary.d @@ -1,8 +1,8 @@ module sdp.meta.metadoc_summary; template SiSUabstractionSummary() { auto SiSUabstractionSummary(S,T)( - auto return ref const S doc_abstraction, - auto return ref T doc_matters, + auto ref const S doc_abstraction, + auto ref T doc_matters, ) { import sdp.meta.defaults, diff --git a/src/sdp/output/epub3.d b/src/sdp/output/epub3.d index dce1b0c..9389e58 100644 --- a/src/sdp/output/epub3.d +++ b/src/sdp/output/epub3.d @@ -293,8 +293,8 @@ template outputEPub3() { } void outputEPub3(D,I)( - auto return ref const D doc_abstraction, - auto return ref I doc_matters, + auto ref const D doc_abstraction, + auto ref I doc_matters, ) { mixin SiSUoutputRgxInit; auto xhtml_format = outputXHTMLs(); diff --git a/src/sdp/output/html.d b/src/sdp/output/html.d index 46cd4ee..d783579 100644 --- a/src/sdp/output/html.d +++ b/src/sdp/output/html.d @@ -13,8 +13,8 @@ template outputHTML() { sdp.output.xmls_css; mixin outputXHTMLs; void scroll(D,I)( - auto return ref const D doc_abstraction, - auto return ref I doc_matters, + auto ref const D doc_abstraction, + auto ref I doc_matters, ) { mixin SiSUoutputRgxInit; auto xhtml_format = outputXHTMLs(); @@ -181,7 +181,7 @@ template outputHTML() { writeln(" ", pth_html.fn_scroll(doc_matters.src.filename)); } void seg(D,M)( - auto return ref const D doc_abstraction, + auto ref const D doc_abstraction, auto ref M doc_matters, ) { mixin SiSUoutputRgxInit; @@ -438,7 +438,7 @@ template outputHTML() { writeln(" ", pth_html.fn_seg(doc_matters.src.filename, "toc")); } void css(M)( - auto return ref M doc_matters, + auto ref M doc_matters, ) { auto css = SiSUcss(); auto pth_html = SiSUpathsHTML!()(doc_matters.output_path, doc_matters.src.language); @@ -456,7 +456,7 @@ template outputHTML() { } } void images_cp(M)( - auto return ref M doc_matters, + auto ref M doc_matters, ) { { /+ (copy html images) +/ diff --git a/src/sdp/output/sqlite.d b/src/sdp/output/sqlite.d index 636fe6f..f805392 100644 --- a/src/sdp/output/sqlite.d +++ b/src/sdp/output/sqlite.d @@ -158,7 +158,7 @@ template SQLiteFormatAndLoadObject() { return _txt; } auto munge_html(O)( - auto return ref const O obj, + auto ref const O obj, ) { string _html_special_characters(string _txt){ _txt = _txt @@ -240,7 +240,7 @@ template SQLiteFormatAndLoadObject() { return _txt; } auto html_heading(O)( - auto return ref const O obj, + auto ref const O obj, ) { string _txt = munge_html(obj); string o = format(q"¶<p class="%s"><b> @@ -252,7 +252,7 @@ template SQLiteFormatAndLoadObject() { return o; } auto html_para(O)( - auto return ref const O obj, + auto ref const O obj, ) { string _txt = munge_html(obj); _txt = (obj.attrib.bullet) ? ("●  " ~ _txt) : _txt; @@ -267,7 +267,7 @@ template SQLiteFormatAndLoadObject() { return o; } auto html_quote(O)( - auto return ref const O obj, + auto ref const O obj, ) { string _txt = munge_html(obj); string o = format(q"¶<p class="%s"> @@ -279,7 +279,7 @@ template SQLiteFormatAndLoadObject() { return o; } auto html_group(O)( - auto return ref const O obj, + auto ref const O obj, ) { string _txt = munge_html(obj); string o = format(q"¶<p class="%s"> @@ -291,7 +291,7 @@ template SQLiteFormatAndLoadObject() { return o; } auto html_block(O)( - auto return ref const O obj, + auto ref const O obj, ) { string _txt = munge_html(obj); string o = format(q"¶ @@ -302,7 +302,7 @@ template SQLiteFormatAndLoadObject() { return o; } auto html_verse(O)( - auto return ref const O obj, + auto ref const O obj, ) { string _txt = munge_html(obj); string o = format(q"¶<p class="%s">%s</p>¶", @@ -312,7 +312,7 @@ template SQLiteFormatAndLoadObject() { return o; } auto html_code(O)( - auto return ref const O obj, + auto ref const O obj, ) { string _txt = html_special_characters_code(obj.text); string o = format(q"¶<p class="%s">%s</p>¶", @@ -322,10 +322,10 @@ template SQLiteFormatAndLoadObject() { return o; } auto html_table(O)( - auto return ref const O obj, + auto ref const O obj, ) { auto _tablarize(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { string[] _table_rows = _txt.split(rgx.table_delimiter_row); @@ -382,21 +382,21 @@ template SQLiteFormatAndLoadObject() { return o; } auto sqlite_load_string(O,Dm)( - auto return ref const O obj, - auto return ref Dm doc_matters, + auto ref const O obj, + auto ref Dm doc_matters, ) { string o; return o; } auto postgresql_load_string(O,Dm)( - auto return ref const O obj, - auto return ref Dm doc_matters, + auto ref const O obj, + auto ref Dm doc_matters, ) { string o; return o; } string sqlite_statement(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _html, ) { @@ -410,7 +410,7 @@ template SQLiteFormatAndLoadObject() { return _sql; } auto heading(O)( - auto return ref const O obj, + auto ref const O obj, ) { string[string] obj_txt = [ "text": generic_munge_sanitize_text_for_search(obj.text), @@ -429,7 +429,7 @@ template SQLiteFormatAndLoadObject() { return obj_txt; } auto para(O)( - auto return ref const O obj, + auto ref const O obj, ) { string[string] obj_txt = [ "text": generic_munge_sanitize_text_for_search(obj.text), @@ -448,7 +448,7 @@ template SQLiteFormatAndLoadObject() { return obj_txt; } auto quote(O)( - auto return ref const O obj, + auto ref const O obj, ) { string[string] obj_txt = [ "text": generic_munge_sanitize_text_for_search(obj.text), @@ -467,7 +467,7 @@ template SQLiteFormatAndLoadObject() { return obj_txt; } auto group(O)( - auto return ref const O obj, + auto ref const O obj, ) { string[string] obj_txt = [ "text": generic_munge_sanitize_text_for_search(obj.text), @@ -486,7 +486,7 @@ template SQLiteFormatAndLoadObject() { return obj_txt; } auto block(O)( - auto return ref const O obj, + auto ref const O obj, ) { string[string] obj_txt = [ "text": generic_munge_sanitize_text_for_search(obj.text), @@ -505,7 +505,7 @@ template SQLiteFormatAndLoadObject() { return obj_txt; } auto verse(O)( - auto return ref const O obj, + auto ref const O obj, ) { string[string] obj_txt = [ "text": generic_munge_sanitize_text_for_search(obj.text), @@ -524,7 +524,7 @@ template SQLiteFormatAndLoadObject() { return obj_txt; } auto code(O)( - auto return ref const O obj, + auto ref const O obj, ) { string[string] obj_txt = [ "text": generic_munge_sanitize_text_for_search(obj.text), @@ -543,7 +543,7 @@ template SQLiteFormatAndLoadObject() { return obj_txt; } auto table(O)( - auto return ref const O obj, + auto ref const O obj, ) { string[string] obj_txt = [ "text": generic_munge_sanitize_text_for_search(obj.text), diff --git a/src/sdp/output/xmls.d b/src/sdp/output/xmls.d index e977e6c..e389c5c 100644 --- a/src/sdp/output/xmls.d +++ b/src/sdp/output/xmls.d @@ -51,7 +51,7 @@ template outputXHTMLs() { return delimit; } string special_characters(O)( - auto return ref const O obj, + auto ref const O obj, string _txt ){ _txt = (_txt) @@ -312,7 +312,7 @@ template outputXHTMLs() { return o; } auto inline_images(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "seg", @@ -335,7 +335,7 @@ template outputXHTMLs() { return _txt; } auto inline_links(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "seg", @@ -381,7 +381,7 @@ template outputXHTMLs() { return _txt; } auto inline_notes_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { if (obj.has.inline_notes_reg) { @@ -404,7 +404,7 @@ template outputXHTMLs() { return _txt; } auto inline_notes_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { string[] _endnotes; @@ -443,7 +443,7 @@ template outputXHTMLs() { return t; } auto inline_markup_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", ) { @@ -453,7 +453,7 @@ template outputXHTMLs() { return _txt; } auto inline_markup_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "seg", @@ -464,7 +464,7 @@ template outputXHTMLs() { return t; } string lev4_heading_subtoc(O)( - auto return ref const O obj, + auto ref const O obj, ) { char[] lev4_subtoc; lev4_subtoc ~= " <div class=\"nav\">\n"; @@ -490,7 +490,7 @@ template outputXHTMLs() { return lev4_subtoc.to!string; } auto nav_pre_next_svg(O)( - auto return ref const O obj, + auto ref const O obj, ) { string prev, next, toc; if (obj.tags.segment_anchor_tag == "toc") { @@ -567,7 +567,7 @@ template outputXHTMLs() { return bar(); } auto heading(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _xml_type = "html", ) { @@ -616,7 +616,7 @@ template outputXHTMLs() { return o; } auto heading_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", ) { @@ -626,7 +626,7 @@ template outputXHTMLs() { return o; } auto heading_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -642,7 +642,7 @@ template outputXHTMLs() { return u; } auto para(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { auto tags = _xhtml_anchor_tags(obj.tags.anchor_tags); @@ -681,7 +681,7 @@ template outputXHTMLs() { return o; } auto para_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", ) { @@ -691,7 +691,7 @@ template outputXHTMLs() { return o; } auto para_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -707,7 +707,7 @@ template outputXHTMLs() { return u; } auto quote(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { _txt = font_face(_txt); @@ -738,7 +738,7 @@ template outputXHTMLs() { return o; } auto quote_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", ) { @@ -748,7 +748,7 @@ template outputXHTMLs() { return o; } auto quote_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -764,7 +764,7 @@ template outputXHTMLs() { return u; } auto group(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { _txt = font_face(_txt); @@ -795,7 +795,7 @@ template outputXHTMLs() { return o; } auto group_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -806,7 +806,7 @@ template outputXHTMLs() { return o; } auto group_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -822,7 +822,7 @@ template outputXHTMLs() { return u; } auto block(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { _txt = font_face(_txt); @@ -849,7 +849,7 @@ template outputXHTMLs() { return o; } auto block_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -860,7 +860,7 @@ template outputXHTMLs() { return o; } auto block_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -876,7 +876,7 @@ template outputXHTMLs() { return u; } auto verse(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { _txt = font_face(_txt); @@ -903,7 +903,7 @@ template outputXHTMLs() { return o; } auto verse_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -914,7 +914,7 @@ template outputXHTMLs() { return o; } auto verse_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -930,7 +930,7 @@ template outputXHTMLs() { return u; } auto tablarize(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { string[] _table_rows = (_txt).split(rgx.table_delimiter_row); @@ -963,7 +963,7 @@ template outputXHTMLs() { return t; } auto table(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { auto tags = _xhtml_anchor_tags(obj.tags.anchor_tags); @@ -992,7 +992,7 @@ template outputXHTMLs() { return o; } auto endnote(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { string o; @@ -1007,7 +1007,7 @@ template outputXHTMLs() { return o; } auto code(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { string o; |