From: Eric Wong Date: Sat, 23 Jul 2022 04:41:49 +0000 (+0000) Subject: ds: move no-op ->zflush to common base class X-Git-Tag: v1.9.0~87 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=0f432191082f889c4296351e356c4abaf8cc7a28 ds: move no-op ->zflush to common base class More deduplication, and POP3 never needed it. --- diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index 79f7046f..daef9d89 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -648,6 +648,8 @@ sub shutdn ($) { } } +sub zflush {} # overridden by NNTPdeflate and IMAPdeflate + sub dwaitpid ($;$$) { my ($pid, $cb, $arg) = @_; if ($in_loop) { diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm index 89a278c1..f4b08eee 100644 --- a/lib/PublicInbox/IMAP.pm +++ b/lib/PublicInbox/IMAP.pm @@ -1271,8 +1271,6 @@ sub event_step { sub compressed { undef } -sub zflush {} # overridden by IMAPdeflate - # RFC 4978 sub cmd_compress ($$$) { my ($self, $tag, $alg) = @_; diff --git a/lib/PublicInbox/NNTP.pm b/lib/PublicInbox/NNTP.pm index 533a0c59..f0ee11cb 100644 --- a/lib/PublicInbox/NNTP.pm +++ b/lib/PublicInbox/NNTP.pm @@ -968,8 +968,6 @@ sub cmd_compress ($$) { undef } -sub zflush {} # overridden by NNTPdeflate - sub cmd_xpath ($$) { my ($self, $mid) = @_; return r501 unless $mid =~ $ONE_MSGID; diff --git a/lib/PublicInbox/POP3.pm b/lib/PublicInbox/POP3.pm index c368615d..fcea4bb9 100644 --- a/lib/PublicInbox/POP3.pm +++ b/lib/PublicInbox/POP3.pm @@ -55,8 +55,6 @@ sub out ($$;@) { printf { $self->{pop3d}->{out} } $fmt."\n", @args; } -sub zflush {} # noop - sub requeue_once ($) { my ($self) = @_; # COMPRESS users all share the same DEFLATE context.