From f54c29f39c4d12596866aca8438f23d00dd61705 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 2 Jun 2019 03:39:32 +0000 Subject: ds: drop more unused subs 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(-) (limited to 'lib') diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index 9142f210..89042cfc 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 b2f8c088..afed24ff 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) } -- cgit v1.2.3-24-ge0c7