From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id A15141FA11 for ; Wed, 26 Aug 2020 08:17:43 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 4/5] over*: use v5.10.1, drop warnings Date: Wed, 26 Aug 2020 08:17:41 +0000 Message-Id: <20200826081742.16642-5-e@yhbt.net> In-Reply-To: <20200826081742.16642-1-e@yhbt.net> References: <20200826081742.16642-1-e@yhbt.net> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: 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 | 2 +- lib/PublicInbox/OverIdx.pm | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/lib/PublicInbox/Over.pm b/lib/PublicInbox/Over.pm index 6b7d5216..0957cbdd 100644 --- a/lib/PublicInbox/Over.pm +++ b/lib/PublicInbox/Over.pm @@ -6,7 +6,7 @@ # 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; diff --git a/lib/PublicInbox/OverIdx.pm b/lib/PublicInbox/OverIdx.pm index 512c5f46..67f8cf65 100644 --- a/lib/PublicInbox/OverIdx.pm +++ b/lib/PublicInbox/OverIdx.pm @@ -9,14 +9,13 @@ # 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 PublicInbox::Search; use Carp qw(croak); sub dbh_new {