Skip to content

Commit

Permalink
The then tucs now metacpan API we use for checking dists isn't workin…
Browse files Browse the repository at this point in the history
…g, so don't bother
  • Loading branch information
abh committed Feb 3, 2022
1 parent 9192e57 commit e9d9a9c
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 148 deletions.
3 changes: 1 addition & 2 deletions lib/CPANRatings/Control.pm
@@ -1,8 +1,7 @@
package CPANRatings::Control;
use Moose;
extends qw(Combust::Control Combust::Control::Bitcard::DBIC Combust::Control::StaticFiles);
extends qw(Combust::Control Combust::Control::StaticFiles);
use LWP::Simple qw(get);
use CPANRatings::Model::SearchCPAN;
use Combust::Constant qw(OK);
use PerlOrg::Template::Filters;

Expand Down
1 change: 0 additions & 1 deletion lib/CPANRatings/Control/Search.pm
@@ -1,7 +1,6 @@
package CPANRatings::Control::Search;
use strict;
use base qw(CPANRatings::Control);
use CPANRatings::Model::SearchCPAN;
use Combust::Constant qw(OK);

sub render {
Expand Down
4 changes: 0 additions & 4 deletions lib/CPANRatings/Control/Show.pm
@@ -1,7 +1,6 @@
package CPANRatings::Control::Show;
use strict;
use base qw(CPANRatings::Control);
use CPANRatings::Model::SearchCPAN qw();
use Combust::Constant qw(OK NOT_FOUND);
use URI::Escape qw(uri_escape);

Expand All @@ -18,9 +17,6 @@ sub render {
return NOT_FOUND
unless ($mode eq 'dist' or $mode eq 'd');

return NOT_FOUND
unless (CPANRatings::Model::SearchCPAN->valid_distribution($id));

my $metacpan = 'https://metacpan.org/release/' . uri_escape($id);

if ($format eq "html") {
Expand Down
141 changes: 0 additions & 141 deletions lib/CPANRatings/Model/SearchCPAN.pm

This file was deleted.

0 comments on commit e9d9a9c

Please sign in to comment.