From 3a9a497db9583be2618fba44b354f4f6d9998e59 Mon Sep 17 00:00:00 2001 From: David Warring Date: Thu, 18 Jan 2018 06:24:00 +1300 Subject: [PATCH] remove unreachable code in cursor_init we're already in an else block from a previous nqp::isconcrete(self) && $!braid test --- src/QRegex/Cursor.nqp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/QRegex/Cursor.nqp b/src/QRegex/Cursor.nqp index d9baf32b50..d78350a06e 100644 --- a/src/QRegex/Cursor.nqp +++ b/src/QRegex/Cursor.nqp @@ -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;