summaryrefslogtreecommitdiff
path: root/parse/gram.y
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-07-25 13:19:49 -0700
committerOri Bernstein <ori@markovcorp.com>2017-07-25 13:19:49 -0700
commitcb85a03cb45a25936ce0afaa17651636ca566606 (patch)
tree2ca272cbefcf2f0bfbe9b3b4ec1ebb5dc1ff3790 /parse/gram.y
parenta2f4956537807af8c698423f25b9b6de7ab66c1f (diff)
downloadmc-cb85a03cb45a25936ce0afaa17651636ca566606.tar.gz
Remove spandrels.
Match patterns can't be null. They haven't been nullable for ages. And even if they could be nullable, $2 isn't the match statement any more.
Diffstat (limited to 'parse/gram.y')
-rw-r--r--parse/gram.y6
1 files changed, 2 insertions, 4 deletions
diff --git a/parse/gram.y b/parse/gram.y
index dc91cb8..4693e38 100644
--- a/parse/gram.y
+++ b/parse/gram.y
@@ -979,12 +979,10 @@ matchstmt: Tmatch exprln optendlns Tbor matches Tendblk
matches : match {
$$.nl = NULL;
$$.nn = 0;
- if ($1)
- lappend(&$$.nl, &$$.nn, $1);
+ lappend(&$$.nl, &$$.nn, $1);
}
| matches Tbor match {
- if ($2)
- lappend(&$$.nl, &$$.nn, $3);
+ lappend(&$$.nl, &$$.nn, $3);
}
;