]> Sergey Matveev's repositories - public-inbox.git/commitdiff
ds: drop more unused subs
authorEric Wong <e@80x24.org>
Sun, 2 Jun 2019 03:39:32 +0000 (03:39 +0000)
committerEric Wong <e@80x24.org>
Sun, 2 Jun 2019 05:23:10 +0000 (05:23 +0000)
ToClose and HaveEpoll are of no use to us and I see no
future use for them, either.

lib/PublicInbox/DS.pm
lib/PublicInbox/EvCleanup.pm

index 9142f210d4741ba9e00f73017059711ae530edae..89042cfcd223349548a7730d1c24809a2aabf605 100644 (file)
@@ -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.
index b2f8c0886f031e4d9e6cde95ae12095bf646f2b9..afed24ffc965fe4f039a661daabdd5e26dba9dfd 100644 (file)
@@ -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) }