# HG changeset patch # User HIROSE Yuuji # Date 1608983107 -32400 # Node ID c01b13db3bd340ad562fb83c5a4c7410f64b1c29 # Parent 1dc4007d7c20b4ed7dae69f359fd3020dbfc5182 Remove wrecks of debug code diff -r 1dc4007d7c20 -r c01b13db3bd3 s4-funcs.sh --- 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<\)\([1-9][0-9]*\)\(#[0-9a-fxs]*\)*,\1$elink$dvlink," | dt_colhack | dt_rowhack
@@ -3912,11 +3896,6 @@
EOF -### `query ".read $sqlfile"` -### `sq -header -cmd ".mode $1" $db ".read $sqlfile"` - - ## REMOVE THIS! - [ "$ddd" ] && err "----- `gdate +%FT%T.%3N` ------------666666" } clean-orphaned() {