lib/PublicInbox/IMAP.pm | 11 +----------
diff --git a/lib/PublicInbox/IMAP.pm b/lib/PublicInbox/IMAP.pm
index 58a0a9e37c441601c907a485f6ece5c8aee4d24f..d47e4c2f12e0993db5cd9b67667d786695502d28 100644
--- a/lib/PublicInbox/IMAP.pm
+++ b/lib/PublicInbox/IMAP.pm
@@ -1,4 +1,4 @@
-# Copyright (C) 2020-2021 all contributors
+# Copyright (C) all contributors
# License: AGPL-3.0+
#
# Each instance of this represents an IMAP client connected to
@@ -1151,15 +1151,6 @@
sub cmd_search ($$$;) {
my ($self, $tag, $query) = @_;
search_common($self, $tag, $query, 1);
-}
-
-sub args_ok ($$) { # duplicated from PublicInbox::NNTP
- my ($cb, $argc) = @_;
- my $tot = prototype $cb;
- my ($nreq, undef) = split(';', $tot);
- $nreq = ($nreq =~ tr/$//) - 1;
- $tot = ($tot =~ tr/$//) - 1;
- ($argc <= $tot && $argc >= $nreq);
}
# returns 1 if we can continue, 0 if not due to buffered writes or disconnect