* [PATCH] nntp: remove unused hdr_val subroutine
@ 2016-04-25 6:47 7% Eric Wong
0 siblings, 0 replies; 1+ results
From: Eric Wong @ 2016-04-25 6:47 UTC (permalink / raw)
To: meta
hdr_val has not been used since commit 1d236e649df1
("nntp: implement OVER/XOVER summary in search document")
---
lib/PublicInbox/NNTP.pm | 10 ----------
1 file changed, 10 deletions(-)
diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm
index 8740377..c715e8f 100644
--- a/lib/PublicInbox/NNTP.pm
+++ b/lib/PublicInbox/NNTP.pm
@@ -533,16 +533,6 @@ sub get_range ($$) {
[ $beg, $end ];
}
-sub hdr_val ($$) {
- my ($r, $header) = @_;
- return $r->[3] if $header =~ /\A:?bytes\z/i;
- return $r->[4] if $header =~ /\A:?lines\z/i;
- $r = $r->[2]->header_obj->header($header);
- defined $r or return;
- $r =~ s/[\r\n\t]+/ /sg;
- $r;
-}
-
sub long_response ($$$$) {
my ($self, $beg, $end, $cb) = @_;
die "BUG: nested long response" if $self->{long_res};
--
EW
^ permalink raw reply related [relevance 7%]
Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2016-04-25 6:47 7% [PATCH] nntp: remove unused hdr_val subroutine Eric Wong
Code repositories for project(s) associated with this public inbox
https://80x24.org/public-inbox.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).