about summary refs log tree commit homepage
path: root/lib/PublicInbox/GetlineBody.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-12-25 07:50:46 +0000
committerEric Wong <e@80x24.org>2019-12-26 10:48:19 +0000
commit3eba4cbd05b348622e772889b06a5994ba69d157 (patch)
tree14db2a25c25e701ba61477d3f4919b09ca4ef915 /lib/PublicInbox/GetlineBody.pm
parent1971bbe4cd599b3d9583084145266369525bfca2 (diff)
downloadpublic-inbox-3eba4cbd05b348622e772889b06a5994ba69d157.tar.gz
This feature was added in preparation for future changes
that have yet to materialize after nearly 3 years.  We
can re-add it if needed in the future.
Diffstat (limited to 'lib/PublicInbox/GetlineBody.pm')
-rw-r--r--lib/PublicInbox/GetlineBody.pm6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/PublicInbox/GetlineBody.pm b/lib/PublicInbox/GetlineBody.pm
index 750a8c53..bcabc04a 100644
--- a/lib/PublicInbox/GetlineBody.pm
+++ b/lib/PublicInbox/GetlineBody.pm
@@ -13,13 +13,13 @@ use strict;
 use warnings;
 
 sub new {
-        my ($class, $rpipe, $end, $end_arg, $buf, $filter) = @_;
+        my ($class, $rpipe, $end, $end_arg, $buf) = @_;
         bless {
                 rpipe => $rpipe,
                 end => $end,
                 end_arg => $end_arg,
                 buf => $buf,
-                filter => $filter || 0,
+                filter => 0,
         }, $class;
 }
 
@@ -36,7 +36,7 @@ sub getline {
         my $buf = delete $self->{buf}; # initial buffer
         $buf = $self->{rpipe}->getline unless defined $buf;
         $self->{filter} = -1 unless defined $buf; # set EOF for next call
-        $filter ? $filter->($buf) : $buf;
+        $buf;
 }
 
 sub close {