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 5F7C01F4C7 for ; Mon, 21 Oct 2019 11:22:30 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 6/7] hval: remove new_oneline Date: Mon, 21 Oct 2019 11:22:28 +0000 Message-Id: <20191021112229.3029-7-e@80x24.org> In-Reply-To: <20191021112229.3029-1-e@80x24.org> References: <20191021112229.3029-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: commit 476fc666c223f0fb ('reduce "PublicInbox::Hval->new_oneline" use') was mis-titled, since it completely eliminated ->new_oneline use. --- lib/PublicInbox/Hval.pm | 8 -------- 1 file changed, 8 deletions(-) diff --git a/lib/PublicInbox/Hval.pm b/lib/PublicInbox/Hval.pm index 0e290601..c134e297 100644 --- a/lib/PublicInbox/Hval.pm +++ b/lib/PublicInbox/Hval.pm @@ -32,14 +32,6 @@ sub new_msgid { $class->new($msgid, mid_escape($msgid)); } -sub new_oneline { - my ($class, $raw) = @_; - $raw = '' unless defined $raw; - $raw =~ tr/\t\n / /s; # squeeze spaces - $raw =~ tr/\r//d; # kill CR - $class->new($raw); -} - # some of these overrides are standard C escapes so they're # easy-to-understand when rendered. my %escape_sequence = (