shithub: mc

Download patch

ref: 50de5a0737e256b52262f35d82cdc5985520e64f
parent: a77a83ee673ab4bef38e336345f3196c814bdcf7
author: Ori Bernstein <ori@eigenstate.org>
date: Sat Sep 2 18:33:07 EDT 2017

Remove dead crap.

--- a/lib/http/bld.sub
+++ b/lib/http/bld.sub
@@ -1,10 +1,10 @@
-bin h =
+bin h {noinst}=
 	h.myr
 
 	lib http
 ;;
 
-bin srvdot =
+bin srvdot {noinst}=
 	srvdot.myr
 
 	lib http
--- a/lib/http/types.myr
+++ b/lib/http/types.myr
@@ -4,7 +4,7 @@
 pkg http =
 	type status = int
 
-	const Ok = 200
+	const Ok	: status = 200
 
 	type session = struct
 		f	: bio.file#
@@ -20,20 +20,6 @@
 		lfd	: std.fd
 		quit	: bool
 	;;
-
-	type router = struct
-		paths	: route[:]
-	;;
-
-	type ctx = struct
-		fd	: byte[:]
-	;;
-
-	type route = struct
-		path	: byte[:]
-		render	: (ctx : ctx# -> status)
-	;;
-
 
 	type url = struct
 		schema	: schema