Skip to content

Commit 0e526ab

Browse files
committed
ParseXS: refactor: remove stray $_
(This commit is part of a series which will extend the AST parse tree from just representing individual XSUBs to representing the whole XS file.) Remove this line: $_ = ''; which is a leftover from when $_ used to maintain the current line between calls to various parsing subs. It's redundant now.
1 parent 9e4ed57 commit 0e526ab

File tree

1 file changed

+0
-2
lines changed
  • dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS

1 file changed

+0
-2
lines changed

dist/ExtUtils-ParseXS/lib/ExtUtils/ParseXS/Node.pm

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1782,8 +1782,6 @@ sub parse {
17821782
or return;
17831783
push @{$self->{kids}}, $decl;
17841784

1785-
$_ = '';
1786-
17871785
# Check all the @{ $pxs->{line}} lines for balance: all the
17881786
# #if, #else, #endif etc within the XSUB should balance out.
17891787
ExtUtils::ParseXS::Utilities::check_conditional_preprocessor_statements();

0 commit comments

Comments
 (0)