Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
remove redundant blocktype() method calls
  • Loading branch information
bschmalhofer committed Mar 25, 2009
1 parent dc2e166 commit a67f4ca
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/pct/actions.pm
Expand Up @@ -440,7 +440,6 @@ method switch_statement($/) {
:blocktype('immediate'),
$( $<statement_list>[$count] )
);
$then.blocktype('immediate');
my $expr := PAST::Op.new(
:pasttype('call'),
:name('infix:=='),
Expand All @@ -460,7 +459,7 @@ method switch_statement($/) {
}
if ( $<default> ) {
my $default := $( $<default>[0] );
$default.blocktype('immediate');
# $default.blocktype('immediate');
$past.push( $default );
}
while ($count > 0) {
Expand All @@ -476,7 +475,6 @@ method switch_statement($/) {
:blocktype('immediate'),
$( $<statement_list>[$count] )
);
$then.blocktype('immediate');
$past := PAST::Op.new(
:pasttype('if'),
:node( $/ ),
Expand Down

0 comments on commit a67f4ca

Please sign in to comment.