shithub: mc

Download patch

ref: 4073bdf9c99a87f68e2f682a5c8925fc96afa4b0
parent: 8ec8ea745e4696bc2572f6dec181a27626d5fcba
author: Ori Bernstein <ori@eigenstate.org>
date: Mon Jun 22 06:29:10 EDT 2015

Remove unused `Byte constructor.

    We never generated it in regexes.

--- a/libregex/compile.myr
+++ b/libregex/compile.myr
@@ -93,7 +93,6 @@
 	|`Quest	a:	genquest(re, a)
 
 	/* end matches */
-	|`Byte	b: 	append(re, `Ibyte b)
 	|`Chr	c:	genchar(re, c)
 	|`Ranges  sl:	genranges(re, sl)
 
@@ -443,8 +442,6 @@
 	| `Eow:
 		std.put("Eow\n")
 	/* end matches */
-	| `Byte	b:
-		std.put("Byte {}\n", b)
 	| `Chr	c:
 		std.put("Char {}\n", c)
 	| `Ranges rl:
@@ -827,7 +824,6 @@
 	| `Quest a:	astfree(a)
 
 	/* end matches */
-	| `Byte	b:	
 	| `Chr c:	
 	| `Ranges rl:	std.slfree(rl)
 
--- a/libregex/types.myr
+++ b/libregex/types.myr
@@ -24,7 +24,6 @@
 		`Quest	ast#	
 
 		/* end matches */
-		`Byte	byte
 		`Chr	char
 		`Ranges	char[2][:]