shithub: mc

Download patch

ref: c895d869daf0531f5fb1df182ebc92898d0bae99
parent: 6bc97a3d153ba5bb77dc67c2cf7eb495ff277855
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Oct 6 17:46:07 EDT 2014

Remove some debug code.

--- a/build.myr
+++ b/build.myr
@@ -116,10 +116,6 @@
 				stale = true
 			;;
 			if !isfresh(d, out)
-				if opt_debug
-					std.put("Stale %s => %s\n", d, out);
-					pmtime(d, out)
-				;;
 				stale = true
 			;;
 		;;
@@ -297,24 +293,6 @@
 		-> srcsb.mtime.sec < dstsb.mtime.sec
 	else
 		-> srcsb.mtime.nsec <= dstsb.mtime.nsec
-	;;
-}
-
-const pmtime = {src, dst
-	var srcsb, dstsb
-
-	if sys.stat(src, &srcsb) != 0
-		std.put("\tno %s\n", src)
-		->
-	;;
-	if sys.stat(dst, &dstsb) != 0
-		std.put("\tno %s\n", dst)
-		->
-	;;
-	if srcsb.mtime.sec != dstsb.mtime.sec
-		std.put("\tsrc mtime=%ul, dst mtime=%ul\n", srcsb.mtime.sec, dstsb.mtime.sec)
-	else
-		std.put("\tsrc mtime.nsec=%ul, dst mtime.nsec=%ul\n", srcsb.mtime.nsec, dstsb.mtime.nsec)
 	;;
 }