diff options
author | Ori Bernstein <ori@markovcorp.com> | 2017-07-25 13:19:49 -0700 |
---|---|---|
committer | Ori Bernstein <ori@markovcorp.com> | 2017-07-25 13:19:49 -0700 |
commit | cb85a03cb45a25936ce0afaa17651636ca566606 (patch) | |
tree | 2ca272cbefcf2f0bfbe9b3b4ec1ebb5dc1ff3790 /parse | |
parent | a2f4956537807af8c698423f25b9b6de7ab66c1f (diff) | |
download | mc-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')
-rw-r--r-- | parse/gram.y | 6 |
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); } ; |