diff options
author | David Mitchell <davem@iabyn.com> | 2015-10-02 17:19:22 +0100 |
---|---|---|
committer | David Mitchell <davem@iabyn.com> | 2015-10-02 17:23:23 +0100 |
commit | 5d051ee03641d21c898bf366fb1caee7baf7e646 (patch) | |
tree | 26fb55d97521454facd4b45552201c65c052d091 /perly.y | |
parent | 9ff1a054e52a031d80d4625192ca222e15bb9c69 (diff) | |
download | perl-5d051ee03641d21c898bf366fb1caee7baf7e646.tar.gz |
given(): remove support for lexical $_
There is dead code that used to allow
my $_;
...
given ($foo) {
# lexical $_ aliased to $foo here
}
Now that lexical $_ has been removed, remove the code. I've left the
signatures of the newFOO() functions unchanged; they just expect a target
of 0 to always be passed now.
Diffstat (limited to 'perly.y')
-rw-r--r-- | perly.y | 8 |
1 files changed, 1 insertions, 7 deletions
@@ -366,13 +366,7 @@ barestmt: PLUGSTMT } | GIVEN '(' remember mexpr ')' mblock { - const PADOFFSET offset = pad_findmy_pvs("$_", 0); - $$ = block_end($3, - newGIVENOP($4, op_scope($6), - offset == NOT_IN_PAD - || PAD_COMPNAME_FLAGS_isOUR(offset) - ? 0 - : offset)); + $$ = block_end($3, newGIVENOP($4, op_scope($6), 0)); parser->copline = (line_t)$1; } | WHEN '(' remember mexpr ')' mblock |