]> Sergey Matveev's repositories - public-inbox.git/commitdiff
over*: use v5.10.1, drop warnings
authorEric Wong <e@yhbt.net>
Wed, 26 Aug 2020 08:17:41 +0000 (08:17 +0000)
committerEric Wong <e@yhbt.net>
Thu, 27 Aug 2020 10:57:27 +0000 (10:57 +0000)
v5.10.1 lets us use the lighter parent.pm instead of base.pm,
and we'll rely on the shebang to enable warnings (or not).

While we're in the area, drop a no-longer-necessary import for
PublicInbox::Search, since OverIdx doesn't require search.

lib/PublicInbox/Over.pm
lib/PublicInbox/OverIdx.pm

index 6b7d52163028483dfdd4884241e9ef226fa91b34..0957cbdd78cca6290832f93e25b7203977904456 100644 (file)
@@ -6,7 +6,7 @@
 # tweaked/updated over time and rebuilt.
 package PublicInbox::Over;
 use strict;
 # tweaked/updated over time and rebuilt.
 package PublicInbox::Over;
 use strict;
-use warnings;
+use v5.10.1;
 use DBI;
 use DBD::SQLite;
 use PublicInbox::Smsg;
 use DBI;
 use DBD::SQLite;
 use PublicInbox::Smsg;
index 512c5f463f008f0c3e3532ccd803e2d7ca54fc69..67f8cf656958d78440ba13e7115915065021cacf 100644 (file)
@@ -9,14 +9,13 @@
 # are denoted by a negative NNTP article number.
 package PublicInbox::OverIdx;
 use strict;
 # are denoted by a negative NNTP article number.
 package PublicInbox::OverIdx;
 use strict;
-use warnings;
-use base qw(PublicInbox::Over);
+use v5.10.1;
+use parent qw(PublicInbox::Over);
 use IO::Handle;
 use DBI qw(:sql_types); # SQL_BLOB
 use PublicInbox::MID qw/id_compress mids_for_index references/;
 use PublicInbox::Smsg qw(subject_normalized);
 use Compress::Zlib qw(compress);
 use IO::Handle;
 use DBI qw(:sql_types); # SQL_BLOB
 use PublicInbox::MID qw/id_compress mids_for_index references/;
 use PublicInbox::Smsg qw(subject_normalized);
 use Compress::Zlib qw(compress);
-use PublicInbox::Search;
 use Carp qw(croak);
 
 sub dbh_new {
 use Carp qw(croak);
 
 sub dbh_new {