From 96348c1a2229ffcf04153539c028f61bbe36c8b4 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 21 Oct 2019 11:22:28 +0000 Subject: [PATCH] hval: remove new_oneline 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 = ( -- 2.44.0