Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Kill !cursor_start, which used multiple return.

  • Loading branch information...
commit a7f47d9b8e34b64a753c9b02249c9bf73a3e8946 1 parent 67eb623
@jnthn jnthn authored
Showing with 0 additions and 27 deletions.
  1. +0 −27 src/QRegex/Cursor.nqp
View
27 src/QRegex/Cursor.nqp
@@ -93,33 +93,6 @@ role NQPCursorRole is export {
}
$new;
}
-
- method !cursor_start() {
- my $new := nqp::create(self);
- my $sub := nqp::callercode();
- nqp::bindattr($new, $?CLASS, '$!shared', $!shared);
- nqp::bindattr($new, $?CLASS, '$!regexsub', nqp::ifnull(nqp::getcodeobj($sub), $sub));
- if nqp::defined($!restart) {
- nqp::bindattr_i($new, $?CLASS, '$!pos', $!pos);
- nqp::bindattr($new, $?CLASS, '$!cstack', nqp::clone($!cstack)) if $!cstack;
- pir::return__0PsiPPi(
- $new,
- nqp::getattr_s($!shared, ParseShared, '$!target'),
- nqp::bindattr_i($new, $?CLASS, '$!from', $!from),
- $?CLASS,
- nqp::bindattr($new, $?CLASS, '$!bstack', nqp::clone($!bstack)),
- 1);
- }
- nqp::bindattr_i($new, $?CLASS, '$!pos', -3);
- pir::return__0PsiPPi(
- $new,
- nqp::getattr_s($!shared, ParseShared, '$!target'),
- nqp::bindattr_i($new, $?CLASS, '$!from', $!pos),
- $?CLASS,
- nqp::bindattr($new, $?CLASS, '$!bstack', nqp::list_i()),
- 0
- )
- }
# Starts a new Cursor, returning all information relating to it in an array.
# The array is valid until the next call to !cursor_start_all.
Please sign in to comment.
Something went wrong with that request. Please try again.