about summary refs log tree commit homepage
path: root/lib/PublicInbox/NoopFilter.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/PublicInbox/NoopFilter.pm')
-rw-r--r--lib/PublicInbox/NoopFilter.pm24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/PublicInbox/NoopFilter.pm b/lib/PublicInbox/NoopFilter.pm
deleted file mode 100644
index a97dbde6..00000000
--- a/lib/PublicInbox/NoopFilter.pm
+++ /dev/null
@@ -1,24 +0,0 @@
-# Copyright (C) 2020 all contributors <meta@public-inbox.org>
-# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
-
-package PublicInbox::NoopFilter;
-use strict;
-
-sub new { bless \(my $self = ''), __PACKAGE__ }
-
-# noop workalike for PublicInbox::GzipFilter methods
-sub translate {
-        my $self = $_[0];
-        my $ret = $$self .= ($_[1] // '');
-        $$self = '';
-        $ret;
-}
-
-sub zmore {
-        ${$_[0]} .= $_[1];
-        undef;
-}
-
-sub zflush { translate($_[0], $_[1]) }
-
-1;