shithub: mc

Download patch

ref: 58d7f56805e5e6def788c847c49b1051f164bd6c
parent: 9930411eb53445ca7d1f1d98d85d79c646890cc2
author: Ori Bernstein <ori@eigenstate.org>
date: Fri Jun 12 06:46:00 EDT 2015

Remove debug prints.

--- a/libstd/dial+plan9.myr
+++ b/libstd/dial+plan9.myr
@@ -23,7 +23,6 @@
 	var netdir, proto, rem
 
 	(netdir, proto, rem) = parsedial(str)
-	put("net=%s, proto=%s, rem=%s\n", netdir, proto, rem)
 	if netdir.len != 0
 		-> csdial(netdir, proto, rem)
 	;;
@@ -31,7 +30,6 @@
 	match csdial("/net", proto, rem)
 	| `Ok fd:	-> `Ok fd
 	| `Fail m:
-		put("m = %s\n", m)
 		-> csdial("/net.alt", proto, rem)
 	;;
 }
@@ -57,7 +55,6 @@
 	slfree(dir)
 
 	csaddr = fmt("%s!%s", proto, rem)
-	put("csaddr=%s\n", csaddr)
 	if write(csfd, csaddr) < 0
 		close(csfd)
 		-> `Fail "couldn't blah cs"
@@ -100,7 +97,6 @@
 
 	datafd = -1
 	c = nsclonestr(clone, netdir)
-	put("c = %s\n", c)
 	cfd = open(c, Ordwr)
 	if cfd < 0
 		goto cleanup
@@ -112,7 +108,6 @@
 	;;
 	fput(cfd, "connect %s", addr)
 	name = strstrip(namebuf[:n])
-	put("namebuf=%s\n", namebuf[:n])
 	match strrfind(c, "/")
 	| `None:	die("there should be a '/' here\n")
 	| `Some i:	base = c[:i]
@@ -148,7 +143,6 @@
 	| `Some sep:
 		hd = str[:sep]
 		tl = str[sep+1:]
-		put("hd = %s\n", hd)
 		if decode(hd) == '#' || decode(hd) == '/'
 			match strrfind(hd, "/")
 			| `Some idx:
@@ -161,7 +155,6 @@
 		else
 			netdir = ""
 			proto = hd
-			put("proto = %s\n", proto)
 
 		;;
 		rem = tl