| 1 | package CPAN::Local::Plugin::Duplicates; | ||||||||||
| 2 | { | ||||||||||
| 3 | 1 | $CPAN::Local::Plugin::Duplicates::VERSION = '0.010'; | |||||||||
| 4 | } | ||||||||||
| 5 | |||||||||||
| 6 | # ABSTRACT: Remove duplicates | ||||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 1 | extends 'CPAN::Local::Plugin'; | |||||||||
| 13 | 1 | with 'CPAN::Local::Role::Prune'; | |||||||||
| 14 | 1 | ▶ | use namespace::clean -except => 'meta'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 15 | |||||||||||
| 16 | sub prune | ||||||||||
| 17 | 0 | ▶ | { | ||||||||
|
Subroutine
prune: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 18 | 0 | my ( $self, @distros ) = @_; | |||||||||
| 19 | |||||||||||
| 20 | 0 | my (%paths, @needed); | |||||||||
| 21 | |||||||||||
| 22 | 0 | foreach my $distro ( @distros ) | |||||||||
| 23 | { | ||||||||||
| 24 | 0 | ▶ | next if $paths{$distro->path}++; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 25 | 0 | push @needed, $distro; | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 0 | return @needed; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 32 | |||||||||||
| 33 | |||||||||||
| 34 | __END__ | ||||||||||