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 wrap: on
line diff
--- a/s4-funcs.sh	Sat Dec 26 16:57:20 2020 +0900
+++ b/s4-funcs.sh	Sat Dec 26 20:45:07 2020 +0900
@@ -2301,12 +2301,7 @@
   fi
   nblog=`query "SELECT count(id) FROM blog_s WHERE key='owner' AND \
 		val='$uname';"`
-  ## REMOVE This comment block until 2019/7/1
-  ## err "----- `gdate +%FT%T.%3N` ------------C"
-  ## [ x"$user" = x'yuuji@gentei.org' ] && ddd=1
   listblog $uname			> $bf
-  ## unset ddd
-  ## err "----- `gdate +%FT%T.%3N` ------------D"
 
   hometail=$tmpd/tail.$$
   mkfifo $hometail
@@ -3799,7 +3794,6 @@
           	  FROM _target t LEFT JOIN "$_t" a ON t.id=a.$_i) a
           LEFT JOIN ${_t}_s s ON a.id=s.id AND s.key='ctime';
 
-	-- ${ddd:+.system gdate +%T.%3N >> tmp/d1}
 	DROP TABLE IF EXISTS _news;
 	DROP VIEW IF EXISTS _news;
 
@@ -3817,7 +3811,6 @@
                                	         '1970-01-01')
                   GROUP BY $_i) b
           ON a.id=b.$_i;
-	-- ${ddd:+.system gdate +%T.%3N >> tmp/d1}
 	EOF
     # REMOVE next line until 2019/5/1
     cntall="(select count($_i) from $_t where $_i=a.id)"
@@ -3893,15 +3886,6 @@
 	*** SQL-file: $sqlfile ***
 	`cat $sqlfile`
 	EOF
-  if [ "$ddd" ]; then	# REMOVE this block until 2019/7/1
-    err "----- `gdate +%FT%T.%3N` ------------555555aaaaa"
-    cat $sqlfile >> tmp/sql
-    # query ".read $sqlfile" > $tmpd/foo
-    sqlite3 -header -cmd 'pragma foreign_keys=ON' $db ".read $sqlfile" > $tmpd/foo
-    cp $tmpd/foo tmp/
-    err "----- `gdate +%FT%T.%3N` ------------555555"
-    ## $ddd LINE exists at the end of this function
-  fi
   printf '.mode list\n.header 0\n' >> $sqlfile
   cat<<EOF | sed "s,\(<TR><TD>\)\([1-9][0-9]*\)\(#[0-9a-fxs]*\)*</TD>,\1$elink$dvlink</TD>," | dt_colhack | dt_rowhack
 <div> <!-- for folding by check button (s4-funcs.sh:dumptable()) -->
@@ -3912,11 +3896,6 @@
 </div> <!-- dumptable -->
 </div> <!-- for folding by check button (s4-funcs.sh:dumptable()) -->
 EOF
-### `query ".read $sqlfile"`
-### `sq -header -cmd ".mode $1" $db ".read $sqlfile"`
-
-  ## REMOVE THIS!
-  [ "$ddd" ] && err "----- `gdate +%FT%T.%3N` ------------666666"
 }
 
 clean-orphaned() {

yatex.org