Skip to content

Commit

Permalink
Merge pull request #1279 from metacpan/mickey/cleanup
Browse files Browse the repository at this point in the history
cleanup unused method
  • Loading branch information
mickeyn authored Sep 30, 2024
2 parents 2665153 + 8caf889 commit a5dc636
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions lib/MetaCPAN/Script/Watcher.pm
Original file line number Diff line number Diff line change
Expand Up @@ -130,25 +130,6 @@ sub latest_release {
->sort( [ { 'date' => { order => "desc" } } ] )->first;
}

sub skip {
my ( $self, $author, $archive ) = @_;
return $self->es->count( {
index => $self->index->name,
type => 'release',
body => {
query => {
bool => {
must => [
{ term => { status => 'backpan' } },
{ term => { archive => $archive } },
{ term => { author => $author } },
],
},
},
},
} );
}

sub index_release {
my ( $self, $release ) = @_;
my $archive = $self->cpan->child( $release->{path} )->stringify;
Expand Down

0 comments on commit a5dc636

Please sign in to comment.