Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove remaining nqpattr calls.
  • Loading branch information
jnthn committed Oct 21, 2012
1 parent 8d698e3 commit e0d7900
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/QRegex/Cursor.nqp
Expand Up @@ -28,9 +28,7 @@ role NQPCursorRole is export {
my $name;

if !nqp::isnull($!regexsub) && $!regexsub {
%caplist := nqp::ifnull(
nqp::can($!regexsub, 'CAPS') ?? $!regexsub.CAPS() !! nqp::null(),
$!regexsub.nqpattr('caps'));
%caplist := nqp::can($!regexsub, 'CAPS') ?? $!regexsub.CAPS() !! nqp::null();
if !nqp::isnull(%caplist) && %caplist {
$iter := nqp::iterator(%caplist);
while $iter {
Expand Down Expand Up @@ -249,9 +247,7 @@ role NQPCursorRole is export {
my @fates := $nfa.states[0];
my int $start := 1;
my int $fate := 0;
for nqp::ifnull(
nqp::can($!regexsub, 'ALT_NFA') ?? $!regexsub.ALT_NFA($name) !! nqp::null(),
$!regexsub.nqpattr($name)) {
for $!regexsub.ALT_NFA($name) {
my $label := @labels[$fate];
$fate := $fate + 1;
@fates[$fate] := $label;
Expand Down

0 comments on commit e0d7900

Please sign in to comment.