Skip to content

Commit

Permalink
Merge pull request #16 from Grinnz/use_list_util
Browse files Browse the repository at this point in the history
use uniqnum from List::Util
  • Loading branch information
renormalist authored Sep 15, 2017
2 parents f38855e + 1d42f0b commit fbe2642
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions lib/Data/DPath/Context.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ use warnings;
use Data::Dumper;
use aliased 'Data::DPath::Point';
use aliased 'Data::DPath::Attrs';
use List::MoreUtils 'uniq';
use Scalar::Util 'reftype';
use Data::DPath::Filters;
use Iterator::Util;
use List::Util 'min';
use List::Util 1.45 'min', 'uniqnum';
#use Sys::CPU;
use POSIX ();
use Safe;
Expand Down Expand Up @@ -167,7 +166,7 @@ sub _all_ref {

return [
map { $self->give_references ? $_ : $$_ }
uniq
uniqnum
map { defined $_ ? $_->ref : () }
@{$self->current_points}
];
Expand Down

0 comments on commit fbe2642

Please sign in to comment.