Skip to content

Commit

Permalink
Merge pull request #391 from dwarring/cursor_init-tweak
Browse files Browse the repository at this point in the history
remove unreachable code in cursor_init
  • Loading branch information
lizmat committed Jan 17, 2018
2 parents 92730bf + 3a9a497 commit a76455f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/QRegex/Cursor.nqp
Expand Up @@ -425,12 +425,7 @@ role NQPMatchRole is export {
$braid := $!braid."!clone"(); # usually called when switching into a slang
}
else {
if nqp::isconcrete(self) && $!braid {
$braid := Braid."!braid_init"(:grammar(self), :actions(self.actions), :package(nqp::getattr($!braid, Braid, '$!package')));
}
else {
$braid := Braid."!braid_init"(:grammar(self));
}
$braid := Braid."!braid_init"(:grammar(self));
}
}
nqp::die("No braid in cursor_init!") unless $braid;
Expand Down

0 comments on commit a76455f

Please sign in to comment.