Skip to content

Commit e0d7900

Browse files
committed
Remove remaining nqpattr calls.
1 parent 8d698e3 commit e0d7900

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/QRegex/Cursor.nqp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,7 @@ role NQPCursorRole is export {
2828
my $name;
2929

3030
if !nqp::isnull($!regexsub) && $!regexsub {
31-
%caplist := nqp::ifnull(
32-
nqp::can($!regexsub, 'CAPS') ?? $!regexsub.CAPS() !! nqp::null(),
33-
$!regexsub.nqpattr('caps'));
31+
%caplist := nqp::can($!regexsub, 'CAPS') ?? $!regexsub.CAPS() !! nqp::null();
3432
if !nqp::isnull(%caplist) && %caplist {
3533
$iter := nqp::iterator(%caplist);
3634
while $iter {
@@ -249,9 +247,7 @@ role NQPCursorRole is export {
249247
my @fates := $nfa.states[0];
250248
my int $start := 1;
251249
my int $fate := 0;
252-
for nqp::ifnull(
253-
nqp::can($!regexsub, 'ALT_NFA') ?? $!regexsub.ALT_NFA($name) !! nqp::null(),
254-
$!regexsub.nqpattr($name)) {
250+
for $!regexsub.ALT_NFA($name) {
255251
my $label := @labels[$fate];
256252
$fate := $fate + 1;
257253
@fates[$fate] := $label;

0 commit comments

Comments
 (0)