From: Eric Wong Date: Mon, 21 Oct 2019 11:22:28 +0000 (+0000) Subject: hval: remove new_oneline X-Git-Tag: v1.2.0~20 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=96348c1a2229ffcf04153539c028f61bbe36c8b4 hval: remove new_oneline commit 476fc666c223f0fb ('reduce "PublicInbox::Hval->new_oneline" use') was mis-titled, since it completely eliminated ->new_oneline use. --- 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 = (