]> Sergey Matveev's repositories - public-inbox.git/commitdiff
ds: move no-op ->zflush to common base class
authorEric Wong <e@80x24.org>
Sat, 23 Jul 2022 04:41:49 +0000 (04:41 +0000)
committerEric Wong <e@80x24.org>
Sat, 23 Jul 2022 14:22:30 +0000 (14:22 +0000)
More deduplication, and POP3 never needed it.

lib/PublicInbox/DS.pm
lib/PublicInbox/IMAP.pm
lib/PublicInbox/NNTP.pm
lib/PublicInbox/POP3.pm

index 79f7046f87a4dbfe3732d221ecdbc05976336484..daef9d893d5a555bd0fd5188db57edaacd22c43e 100644 (file)
@@ -648,6 +648,8 @@ sub shutdn ($) {
     }
 }
 
+sub zflush {} # overridden by NNTPdeflate and IMAPdeflate
+
 sub dwaitpid ($;$$) {
        my ($pid, $cb, $arg) = @_;
        if ($in_loop) {
index 89a278c14e90683395eb16756341d669fb86a84e..f4b08eeed04f3387b364822e22c865d692323fc3 100644 (file)
@@ -1271,8 +1271,6 @@ sub event_step {
 
 sub compressed { undef }
 
-sub zflush {} # overridden by IMAPdeflate
-
 # RFC 4978
 sub cmd_compress ($$$) {
        my ($self, $tag, $alg) = @_;
index 533a0c59f9398d67aef89739a806f47bdd1c46d8..f0ee11cb0b97a7889cdee091032fccbf9c47eb84 100644 (file)
@@ -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;
index c368615d6f94143af05be534ae782cdea4b6faad..fcea4bb9d154ae4901b2c8fdc678d2d7481f1cb8 100644 (file)
@@ -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.