Skip to content

Commit

Permalink
Remove some leftover code
Browse files Browse the repository at this point in the history
Since we abstracted the grabbing logic to GRAB_ONE, we don't need to
keep the number of elements anymore.
  • Loading branch information
lizmat committed Mar 28, 2018
1 parent a0e5e88 commit ce82292
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/Array.pm6
Expand Up @@ -1247,7 +1247,7 @@ my class Array { # declared in BOOTSTRAP
self.is-lazy,
X::Cannot::Lazy.new(:action('.grab from')).throw, # can't make a List
nqp::if(
(my $elems := self.elems), # reifies, bind to keep the HLL Int
self.elems, # reifies
self.GRAB_ONE,
Nil
)
Expand Down

0 comments on commit ce82292

Please sign in to comment.