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-ASN: 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 9BC3F1FA19 for ; Fri, 16 Apr 2021 23:10:36 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 8/9] lei q --save: avoid lei.q.format Date: Fri, 16 Apr 2021 16:10:34 -0700 Message-Id: <20210416231035.31807-9-e@80x24.org> In-Reply-To: <20210416231035.31807-1-e@80x24.org> References: <20210416231035.31807-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It is redundant since we stuff everything into the lei.q.output config key. --- lib/PublicInbox/LeiSavedSearch.pm | 2 -- lib/PublicInbox/LeiUp.pm | 1 - 2 files changed, 3 deletions(-) diff --git a/lib/PublicInbox/LeiSavedSearch.pm b/lib/PublicInbox/LeiSavedSearch.pm index 93b1b23a..a8bf470b 100644 --- a/lib/PublicInbox/LeiSavedSearch.pm +++ b/lib/PublicInbox/LeiSavedSearch.pm @@ -51,8 +51,6 @@ sub new { } else { cfg_set($self, 'lei.q', $q); } - my $fmt = $lei->{opt}->{'format'}; - cfg_set($self, 'lei.q.format', $fmt) if defined $fmt; $dst = "$lei->{ovv}->{fmt}:$dst" if $dst !~ m!\Aimaps?://!i; cfg_set($self, 'lei.q.output', $dst); for my $k (qw(only include exclude)) { diff --git a/lib/PublicInbox/LeiUp.pm b/lib/PublicInbox/LeiUp.pm index 7ddb1dd0..9fe4901b 100644 --- a/lib/PublicInbox/LeiUp.pm +++ b/lib/PublicInbox/LeiUp.pm @@ -24,7 +24,6 @@ sub lei_up { } $lei->{opt}->{output} = $lss->{-cfg}->{'lei.q.output'} // return $lei->fail("lei.q.output unset in $lss->{-f}"); - $lei->{opt}->{'format'} //= $lss->{-cfg}->{'lei.q.format'}; # optional my $to_avref = $lss->{-cfg}->can('_array'); for my $k (qw(only include exclude)) {