From: Mark Hansen Date: Sat, 16 May 2020 02:21:09 +0000 (+1000) Subject: doc: Remove dead code for lines starting with `#<` X-Git-Tag: 2.44.1~62^2 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=8b6bd3c308af0b366eb66902549370801d5cf008;p=graphviz doc: Remove dead code for lines starting with `#<` This `mkoutput.sh` file only operates on the `outputs` file, which has no lines starting with `#<`. Seems like dead code. I thought maybe I could use this functionality to include schema.html without using javascript, but I failed: no lines were included in the output. --- diff --git a/doc/infosrc/mkoutput.sh b/doc/infosrc/mkoutput.sh index cde583046..60a13f481 100755 --- a/doc/infosrc/mkoutput.sh +++ b/doc/infosrc/mkoutput.sh @@ -7,10 +7,7 @@ name= # and desc arrays, respectively, indexed by the format name. # The initial line of an item has the format :name:long name # -# Lines beginning with '#' are treated as comments, unless the -# following character is '<', in which case, it is assumed the -# remainder of the line contains a filename, whose contents will -# be read into the generared html file. +# Lines beginning with '#' are treated as comments. OLDIFS="$IFS" IFS= while read line @@ -18,18 +15,7 @@ do c=${line:0:1} if [[ $c == '#' ]] then - if [[ ${line:1:1} == '<' ]] - then - filename=${line:2} - filename=${filename##*( )} - filename=${filename%%*( )} - while read incline - do - txt="$txt${incline}\n" - done < $filename - else - continue - fi + continue elif [[ $c == ':' ]] then if [[ -n "$name" ]]