summaryrefslogtreecommitdiff
path: root/libregex
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2015-06-22 10:29:10 -0700
committerOri Bernstein <ori@eigenstate.org>2015-06-22 10:29:10 -0700
commit4073bdf9c99a87f68e2f682a5c8925fc96afa4b0 (patch)
tree2ddc50ae59a4fe93a38120674a659734eaa1cb39 /libregex
parent8ec8ea745e4696bc2572f6dec181a27626d5fcba (diff)
downloadmc-4073bdf9c99a87f68e2f682a5c8925fc96afa4b0.tar.gz
Remove unused `Byte constructor.
We never generated it in regexes.
Diffstat (limited to 'libregex')
-rw-r--r--libregex/compile.myr4
-rw-r--r--libregex/types.myr1
2 files changed, 0 insertions, 5 deletions
diff --git a/libregex/compile.myr b/libregex/compile.myr
index 172844d..ff1b703 100644
--- a/libregex/compile.myr
+++ b/libregex/compile.myr
@@ -93,7 +93,6 @@ const gen = {re, t
|`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 @@ const dump = {re, t, indent
| `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 @@ const astfree = {t
| `Quest a: astfree(a)
/* end matches */
- | `Byte b:
| `Chr c:
| `Ranges rl: std.slfree(rl)
diff --git a/libregex/types.myr b/libregex/types.myr
index 2bfa6c9..b283d2a 100644
--- a/libregex/types.myr
+++ b/libregex/types.myr
@@ -24,7 +24,6 @@ pkg regex =
`Quest ast#
/* end matches */
- `Byte byte
`Chr char
`Ranges char[2][:]