From b37b6ca37e7922ad38e712632b1c5ce358e81a7d Mon Sep 17 00:00:00 2001 From: Ralph Amissah Date: Sun, 8 Jul 2018 12:42:44 -0400 Subject: reconsider unecessary "return ref" --- org/output_xmls.org | 76 ++++++++++++++++++++++++++--------------------------- 1 file changed, 38 insertions(+), 38 deletions(-) (limited to 'org/output_xmls.org') diff --git a/org/output_xmls.org b/org/output_xmls.org index 27c3f2f..122b15c 100644 --- a/org/output_xmls.org +++ b/org/output_xmls.org @@ -98,7 +98,7 @@ string div_delimit( #+name: xhtml_format_objects #+BEGIN_SRC d string special_characters(O)( - auto return ref const O obj, + auto ref const O obj, string _txt ){ _txt = (_txt) @@ -421,7 +421,7 @@ auto tail() { #+name: xhtml_format_objects #+BEGIN_SRC d auto inline_images(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "seg", @@ -450,7 +450,7 @@ auto inline_images(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto inline_links(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "seg", @@ -502,7 +502,7 @@ auto inline_links(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto inline_notes_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { if (obj.has.inline_notes_reg) { @@ -531,7 +531,7 @@ auto inline_notes_scroll(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto inline_notes_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { string[] _endnotes; @@ -576,7 +576,7 @@ auto inline_notes_seg(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto inline_markup_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", ) { @@ -592,7 +592,7 @@ auto inline_markup_scroll(O)( #+name: xhtml_format_objects #+BEGIN_SRC d 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", @@ -610,7 +610,7 @@ auto inline_markup_seg(O)( #+name: xhtml_format_objects #+BEGIN_SRC d string lev4_heading_subtoc(O)( - auto return ref const O obj, + auto ref const O obj, ) { char[] lev4_subtoc; lev4_subtoc ~= "
\n"; @@ -642,7 +642,7 @@ string lev4_heading_subtoc(O)( #+name: xhtml_format_objects #+BEGIN_SRC d 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") { @@ -726,7 +726,7 @@ auto nav_pre_next_svg(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto heading(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _xml_type = "html", ) { @@ -781,7 +781,7 @@ auto heading(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto heading_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", ) { @@ -797,7 +797,7 @@ auto heading_scroll(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto heading_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -820,7 +820,7 @@ auto heading_seg(O)( #+name: xhtml_format_objects #+BEGIN_SRC d 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); @@ -865,7 +865,7 @@ auto para(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto para_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", ) { @@ -881,7 +881,7 @@ auto para_scroll(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto para_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -904,7 +904,7 @@ auto para_seg(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto quote(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { _txt = font_face(_txt); @@ -941,7 +941,7 @@ auto quote(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto quote_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", ) { @@ -957,7 +957,7 @@ auto quote_scroll(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto quote_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -980,7 +980,7 @@ auto quote_seg(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto group(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { _txt = font_face(_txt); @@ -1017,7 +1017,7 @@ auto group(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto group_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -1034,7 +1034,7 @@ auto group_scroll(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto group_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -1057,7 +1057,7 @@ auto group_seg(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto block(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { _txt = font_face(_txt); @@ -1090,7 +1090,7 @@ auto block(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto block_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -1107,7 +1107,7 @@ auto block_scroll(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto block_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -1130,7 +1130,7 @@ auto block_seg(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto verse(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { _txt = font_face(_txt); @@ -1163,7 +1163,7 @@ auto verse(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto verse_scroll(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -1180,7 +1180,7 @@ auto verse_scroll(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto verse_seg(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, string _suffix = ".html", string _xml_type = "html", @@ -1202,7 +1202,7 @@ auto verse_seg(O)( #+name: xhtml_format_objects_code #+BEGIN_SRC d auto code(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { string o; @@ -1243,7 +1243,7 @@ align="left|right|center" #+name: xhtml_format_objects #+BEGIN_SRC d 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); @@ -1282,7 +1282,7 @@ auto tablarize(O)( #+name: xhtml_format_objects #+BEGIN_SRC d 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); @@ -1317,7 +1317,7 @@ auto table(O)( #+name: xhtml_format_objects #+BEGIN_SRC d auto endnote(O)( - auto return ref const O obj, + auto ref const O obj, string _txt, ) { string o; @@ -1354,8 +1354,8 @@ template outputHTML() { #+name: output_html_scroll #+BEGIN_SRC d 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(); @@ -1535,7 +1535,7 @@ void scroll_write_output(M,C)( #+name: output_html_seg #+BEGIN_SRC d void seg(D,M)( - auto return ref const D doc_abstraction, + auto ref const D doc_abstraction, auto ref M doc_matters, ) { mixin SiSUoutputRgxInit; @@ -1804,7 +1804,7 @@ void seg_write_output(M,D,E)( #+name: output_html_css #+BEGIN_SRC d 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); @@ -1828,7 +1828,7 @@ void css(M)( #+name: copy_html_images #+BEGIN_SRC d void images_cp(M)( - auto return ref M doc_matters, + auto ref M doc_matters, ) { { /+ (copy html images) +/ @@ -2216,8 +2216,8 @@ string epub2_oebps_toc_ncx(D,I)(D doc_abstraction, I doc_matters) { #+name: output_epub3_xhtml_seg #+BEGIN_SRC d 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(); -- cgit v1.2.3