Skip to content

Commit

Permalink
Remove needless imports
Browse files Browse the repository at this point in the history
While moving queries to API calls some of these ES output
formatters are not needed anymore (and will soon be removed
altogether)
  • Loading branch information
mickeyn committed Jun 15, 2017
1 parent 5b03bdf commit 2d28a18
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 14 deletions.
3 changes: 0 additions & 3 deletions lib/MetaCPAN/Web/Controller/Author.pm
Expand Up @@ -7,9 +7,6 @@ use DateTime::Format::ISO8601 ();
use namespace::autoclean;
use Locale::Country ();

use Importer 'MetaCPAN::Web::Elasticsearch::Adapter' =>
qw/ single_valued_arrayref_to_scalar /;

BEGIN { extends 'MetaCPAN::Web::Controller' }

# Capture the PAUSE id in the root of the chain so we handle the upper-case redirect once.
Expand Down
3 changes: 0 additions & 3 deletions lib/MetaCPAN/Web/Controller/Source.pm
Expand Up @@ -3,9 +3,6 @@ package MetaCPAN::Web::Controller::Source;
use Moose;
use namespace::autoclean;

use Importer 'MetaCPAN::Web::Elasticsearch::Adapter' =>
qw/ single_valued_arrayref_to_scalar /;

BEGIN { extends 'MetaCPAN::Web::Controller' }

sub index : Path : Args {
Expand Down
3 changes: 0 additions & 3 deletions lib/MetaCPAN/Web/Model/API/Favorite.pm
Expand Up @@ -7,9 +7,6 @@ extends 'MetaCPAN::Web::Model::API';
use List::Util qw(uniq);
use Future;

use Importer 'MetaCPAN::Web::Elasticsearch::Adapter' =>
qw/ single_valued_arrayref_to_scalar /;

sub get {
my ( $self, $user, @distributions ) = @_;
@distributions = uniq @distributions;
Expand Down
3 changes: 0 additions & 3 deletions lib/MetaCPAN/Web/Model/API/Module.pm
Expand Up @@ -4,9 +4,6 @@ use namespace::autoclean;

extends 'MetaCPAN::Web::Model::API::File';

use Importer 'MetaCPAN::Web::Elasticsearch::Adapter' =>
qw/ single_valued_arrayref_to_scalar /;

=head1 NAME
MetaCPAN::Web::Model::Module - Catalyst Model
Expand Down
2 changes: 0 additions & 2 deletions lib/MetaCPAN/Web/Model/ReleaseInfo.pm
Expand Up @@ -11,8 +11,6 @@ use MetaCPAN::Web::Types qw( HashRef Object );
use URI;
use URI::Escape qw(uri_escape uri_unescape);
use URI::QueryParam; # Add methods to URI.
use Importer 'MetaCPAN::Web::Elasticsearch::Adapter' =>
qw/ single_valued_arrayref_to_scalar /;

sub ACCEPT_CONTEXT {
my ( $class, $c, $args ) = @_;
Expand Down

0 comments on commit 2d28a18

Please sign in to comment.