From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 496401F609 for ; Mon, 3 Jun 2019 01:52:07 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/6] ds: drop more unused subs Date: Mon, 3 Jun 2019 01:52:01 +0000 Message-Id: <20190603015206.7871-2-e@80x24.org> In-Reply-To: <20190603015206.7871-1-e@80x24.org> References: <20190603015206.7871-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: ToClose and HaveEpoll are of no use to us and I see no future use for them, either. --- lib/PublicInbox/DS.pm | 18 ------------------ lib/PublicInbox/EvCleanup.pm | 2 +- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index 9142f21..89042cf 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -95,24 +95,6 @@ sub Reset { *EventLoop = *FirstTimeEventLoop; } -=head2 C<< CLASS->HaveEpoll() >> - -Returns a true value if this class will use IO::Epoll for async IO. - -=cut -sub HaveEpoll { - _InitPoller(); - return $HaveEpoll; -} - -=head2 C<< CLASS->ToClose() >> - -Return the list of sockets that are awaiting close() at the end of the -current event loop. - -=cut -sub ToClose { return @ToClose; } - =head2 C<< CLASS->SetLoopTimeout( $timeout ) >> Set the loop timeout for the event loop to some value in milliseconds. diff --git a/lib/PublicInbox/EvCleanup.pm b/lib/PublicInbox/EvCleanup.pm index b2f8c08..afed24f 100644 --- a/lib/PublicInbox/EvCleanup.pm +++ b/lib/PublicInbox/EvCleanup.pm @@ -38,7 +38,7 @@ sub _run_all ($) { $_->() foreach @$run; } -# ensure PublicInbox::DS::ToClose fires after timers fire +# ensure PublicInbox::DS::ToClose processing after timers fire sub _asap_close () { $asapq->[1] ||= _asap_timer() } sub _run_asap () { _run_all($asapq) } -- EW