Skip to content

Commit

Permalink
Avoid duplicate use statements
Browse files Browse the repository at this point in the history
  • Loading branch information
atoomic authored and pmqs committed Sep 16, 2020
1 parent 762bb4d commit 11b34f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
5 changes: 2 additions & 3 deletions lib/IO/Compress/RawDeflate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ use warnings;
use bytes;

use IO::Compress::Base 2.096 ;
use IO::Compress::Base::Common 2.096 qw(:Status );
use IO::Compress::Base::Common 2.096 qw(:Status :Parse);
use IO::Compress::Adapter::Deflate 2.096 ;
use Compress::Raw::Zlib 2.096 qw(Z_DEFLATED Z_DEFAULT_COMPRESSION Z_DEFAULT_STRATEGY);

require Exporter ;

Expand Down Expand Up @@ -116,8 +117,6 @@ sub getExtraParams
return getZlibParams();
}

use IO::Compress::Base::Common 2.096 qw(:Parse);
use Compress::Raw::Zlib 2.096 qw(Z_DEFLATED Z_DEFAULT_COMPRESSION Z_DEFAULT_STRATEGY);
our %PARAMS = (
#'method' => [IO::Compress::Base::Common::Parse_unsigned, Z_DEFLATED],
'level' => [IO::Compress::Base::Common::Parse_signed, Z_DEFAULT_COMPRESSION],
Expand Down
3 changes: 1 addition & 2 deletions lib/IO/Uncompress/AnyInflate.pm
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use strict;
use warnings;
use bytes;

use IO::Compress::Base::Common 2.096 ();
use IO::Compress::Base::Common 2.096 qw(:Parse);

use IO::Uncompress::Adapter::Inflate 2.096 ();

Expand Down Expand Up @@ -48,7 +48,6 @@ sub anyinflate

sub getExtraParams
{
use IO::Compress::Base::Common 2.096 qw(:Parse);
return ( 'rawinflate' => [Parse_boolean, 0] ) ;
}

Expand Down

0 comments on commit 11b34f5

Please sign in to comment.