Skip to content

Commit

Permalink
[js] nqp::p6setitertype is no longer needed
Browse files Browse the repository at this point in the history
  • Loading branch information
pmurias committed Aug 14, 2018
1 parent 61e6cbf commit e2cb4d0
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
2 changes: 1 addition & 1 deletion src/core/Iterable.pm6
Expand Up @@ -196,7 +196,7 @@ my role Iterable {
multi method SetHash(Iterable:D:) { SETIFY(self,SetHash) }
}

#?if !moar
#?if jvm
nqp::p6setitertype(Iterable);
#?endif

Expand Down
2 changes: 0 additions & 2 deletions src/vm/js/Perl6/Ops.nqp
Expand Up @@ -69,8 +69,6 @@ $ops.add_simple_op('p6setautothreader', $ops.VOID, [$ops.OBJ], sub ($autothreade
"nqp.p6binder.set_autothreader($*CTX, null, nqp.p6binder, $autothreader)"
}, :side_effects);

$ops.add_simple_op('p6setitertype', $ops.VOID, [$ops.OBJ], :side_effects);

$ops.add_simple_op('p6trialbind', $ops.OBJ, [$ops.OBJ, $ops.OBJ, $ops.OBJ], :!inlinable, sub ($sig, $args, $sig_flags) {
"nqp.p6binder.trial_bind($*CTX, null, nqp.p6binder, $sig, $args, $sig_flags)"
});
Expand Down
7 changes: 0 additions & 7 deletions src/vm/js/perl6-runtime/runtime.js
Expand Up @@ -4,8 +4,6 @@ module.exports.load = function(nqp, CodeRef, Capture, containerSpecs) {

let Scalar, True, False, Int, Num, Str, Code, Mu, Any, ContainerDescriptor, Routine;

let Iterable;

op.p6settypes = function(types) {
Scalar = types.content.get('Scalar');
True = types.content.get('True');
Expand Down Expand Up @@ -214,11 +212,6 @@ module.exports.load = function(nqp, CodeRef, Capture, containerSpecs) {
return value;
};

op.p6setitertype = function(type) {
Iterable = type;
return type;
};

op.p6store = function(ctx, cont, value) {
if (cont.$$assign) {
cont.$$assign(ctx, value.$$decont(ctx));
Expand Down

0 comments on commit e2cb4d0

Please sign in to comment.