Skip to content

Commit

Permalink
Remove now useless THROW helper sub
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Dec 30, 2019
1 parent ee1b991 commit 5162e6f
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 13 deletions.
7 changes: 0 additions & 7 deletions src/core.c/control.pm6
Expand Up @@ -6,13 +6,6 @@ my class PseudoStash { ... }
my class Label { ... }
class CompUnit::DependencySpecification { ... }

sub THROW(int $type, Mu \arg) is raw {
my Mu $ex := nqp::newexception();
nqp::setpayload($ex, arg);
nqp::setextype($ex, $type);
nqp::throw($ex);
arg;
}
sub THROW-NIL(int $type --> Nil) {
my Mu $ex := nqp::newexception();
# nqp::setpayload($ex, Nil);
Expand Down
1 change: 0 additions & 1 deletion t/02-rakudo/03-corekeys-6c.t
Expand Up @@ -81,7 +81,6 @@ my @expected = (
Q{&SUPPLY},
Q{&SUPPLY-ONE-EMIT},
Q{&SUPPLY-ONE-WHENEVER},
Q{&THROW},
Q{&THROW-NIL},
Q{&UNBASE},
Q{&UNBASE_BRACKET},
Expand Down
1 change: 0 additions & 1 deletion t/02-rakudo/03-corekeys-6d.t
Expand Up @@ -81,7 +81,6 @@ my @expected = (
Q{&SUPPLY},
Q{&SUPPLY-ONE-EMIT},
Q{&SUPPLY-ONE-WHENEVER},
Q{&THROW},
Q{&THROW-NIL},
Q{&UNBASE},
Q{&UNBASE_BRACKET},
Expand Down
1 change: 0 additions & 1 deletion t/02-rakudo/03-corekeys-6e.t
Expand Up @@ -82,7 +82,6 @@ my @expected = (
Q{&SUPPLY},
Q{&SUPPLY-ONE-EMIT},
Q{&SUPPLY-ONE-WHENEVER},
Q{&THROW},
Q{&THROW-NIL},
Q{&UNBASE},
Q{&UNBASE_BRACKET},
Expand Down
1 change: 0 additions & 1 deletion t/02-rakudo/03-corekeys.t
Expand Up @@ -83,7 +83,6 @@ my @allowed =
Q{&SUPPLY},
Q{&SUPPLY-ONE-EMIT},
Q{&SUPPLY-ONE-WHENEVER},
Q{&THROW},
Q{&THROW-NIL},
Q{&UNBASE},
Q{&UNBASE_BRACKET},
Expand Down
1 change: 0 additions & 1 deletion t/02-rakudo/04-settingkeys-6c.t
Expand Up @@ -80,7 +80,6 @@ my %allowed = (
Q{&SUPPLY},
Q{&SUPPLY-ONE-EMIT},
Q{&SUPPLY-ONE-WHENEVER},
Q{&THROW},
Q{&THROW-NIL},
Q{&UNBASE},
Q{&UNBASE_BRACKET},
Expand Down
1 change: 0 additions & 1 deletion t/02-rakudo/04-settingkeys-6e.t
Expand Up @@ -79,7 +79,6 @@ my %allowed = (
Q{&SUPPLY},
Q{&SUPPLY-ONE-EMIT},
Q{&SUPPLY-ONE-WHENEVER},
Q{&THROW},
Q{&THROW-NIL},
Q{&UNBASE},
Q{&UNBASE_BRACKET},
Expand Down

0 comments on commit 5162e6f

Please sign in to comment.