s4

changeset 895:c01b13db3bd3

Remove wrecks of debug code
author HIROSE Yuuji <yuuji@gentei.org>
date Sat, 26 Dec 2020 20:45:07 +0900
parents 1dc4007d7c20
children 920818b41cd2
files s4-funcs.sh
diffstat 1 files changed, 0 insertions(+), 21 deletions(-) [+]
line diff
     1.1 --- a/s4-funcs.sh	Sat Dec 26 16:57:20 2020 +0900
     1.2 +++ b/s4-funcs.sh	Sat Dec 26 20:45:07 2020 +0900
     1.3 @@ -2301,12 +2301,7 @@
     1.4    fi
     1.5    nblog=`query "SELECT count(id) FROM blog_s WHERE key='owner' AND \
     1.6  		val='$uname';"`
     1.7 -  ## REMOVE This comment block until 2019/7/1
     1.8 -  ## err "----- `gdate +%FT%T.%3N` ------------C"
     1.9 -  ## [ x"$user" = x'yuuji@gentei.org' ] && ddd=1
    1.10    listblog $uname			> $bf
    1.11 -  ## unset ddd
    1.12 -  ## err "----- `gdate +%FT%T.%3N` ------------D"
    1.13  
    1.14    hometail=$tmpd/tail.$$
    1.15    mkfifo $hometail
    1.16 @@ -3799,7 +3794,6 @@
    1.17            	  FROM _target t LEFT JOIN "$_t" a ON t.id=a.$_i) a
    1.18            LEFT JOIN ${_t}_s s ON a.id=s.id AND s.key='ctime';
    1.19  
    1.20 -	-- ${ddd:+.system gdate +%T.%3N >> tmp/d1}
    1.21  	DROP TABLE IF EXISTS _news;
    1.22  	DROP VIEW IF EXISTS _news;
    1.23  
    1.24 @@ -3817,7 +3811,6 @@
    1.25                                 	         '1970-01-01')
    1.26                    GROUP BY $_i) b
    1.27            ON a.id=b.$_i;
    1.28 -	-- ${ddd:+.system gdate +%T.%3N >> tmp/d1}
    1.29  	EOF
    1.30      # REMOVE next line until 2019/5/1
    1.31      cntall="(select count($_i) from $_t where $_i=a.id)"
    1.32 @@ -3893,15 +3886,6 @@
    1.33  	*** SQL-file: $sqlfile ***
    1.34  	`cat $sqlfile`
    1.35  	EOF
    1.36 -  if [ "$ddd" ]; then	# REMOVE this block until 2019/7/1
    1.37 -    err "----- `gdate +%FT%T.%3N` ------------555555aaaaa"
    1.38 -    cat $sqlfile >> tmp/sql
    1.39 -    # query ".read $sqlfile" > $tmpd/foo
    1.40 -    sqlite3 -header -cmd 'pragma foreign_keys=ON' $db ".read $sqlfile" > $tmpd/foo
    1.41 -    cp $tmpd/foo tmp/
    1.42 -    err "----- `gdate +%FT%T.%3N` ------------555555"
    1.43 -    ## $ddd LINE exists at the end of this function
    1.44 -  fi
    1.45    printf '.mode list\n.header 0\n' >> $sqlfile
    1.46    cat<<EOF | sed "s,\(<TR><TD>\)\([1-9][0-9]*\)\(#[0-9a-fxs]*\)*</TD>,\1$elink$dvlink</TD>," | dt_colhack | dt_rowhack
    1.47  <div> <!-- for folding by check button (s4-funcs.sh:dumptable()) -->
    1.48 @@ -3912,11 +3896,6 @@
    1.49  </div> <!-- dumptable -->
    1.50  </div> <!-- for folding by check button (s4-funcs.sh:dumptable()) -->
    1.51  EOF
    1.52 -### `query ".read $sqlfile"`
    1.53 -### `sq -header -cmd ".mode $1" $db ".read $sqlfile"`
    1.54 -
    1.55 -  ## REMOVE THIS!
    1.56 -  [ "$ddd" ] && err "----- `gdate +%FT%T.%3N` ------------666666"
    1.57  }
    1.58  
    1.59  clean-orphaned() {