shithub: mc

Download patch

ref: 198c1fec67b329f01e7c41244bcdde7b059a7d38
parent: da9b73d68e4850f24e2eb8f727e810ed938b0355
author: Ori Bernstein <[email protected]>
date: Mon Jan 6 12:41:42 EST 2014

Remove tryslurp.

    It was probably a bad idea.

--- a/libstd/slurp.myr
+++ b/libstd/slurp.myr
@@ -8,17 +8,9 @@
 
 pkg std =
 	const slurp : (path : byte[:] -> error(byte[:], byte[:]))
-	const tryslurp	: (path : byte[:] -> byte[:])
 ;;
 
 const Bufinc = 4096
-
-const tryslurp = {path
-	match slurp(path)
-	| `Some data:	-> data
-	| `None:	-> [][:]
-	;;
-}
 
 const slurp = {path
 	var fd