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 0E0A520382 for ; Wed, 22 May 2019 21:47:00 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 1/5] DS: get rid of unused methods and aliases Date: Wed, 22 May 2019 21:46:55 +0000 Message-Id: <20190522214659.6183-2-e@80x24.org> In-Reply-To: <20190522214659.6183-1-e@80x24.org> References: <20190522214659.6183-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: "make syntax" is clean, now --- lib/PublicInbox/DS.pm | 25 ------------------------- 1 file changed, 25 deletions(-) diff --git a/lib/PublicInbox/DS.pm b/lib/PublicInbox/DS.pm index 779215c..0acb034 100644 --- a/lib/PublicInbox/DS.pm +++ b/lib/PublicInbox/DS.pm @@ -105,17 +105,6 @@ sub HaveEpoll { return $HaveEpoll; } -=head2 C<< CLASS->WatchedSockets() >> - -Returns the number of file descriptors which are registered with the global -poll object. - -=cut -sub WatchedSockets { - return scalar keys %DescriptorMap; -} -*watched_sockets = *WatchedSockets; - =head2 C<< CLASS->ToClose() >> Return the list of sockets that are awaiting close() at the end of the @@ -206,20 +195,6 @@ sub AddTimer { die "Shouldn't get here."; } -=head2 C<< CLASS->DescriptorMap() >> - -Get the hash of PublicInbox::DS objects keyed by the file descriptor (fileno) they -are wrapping. - -Returns a hash in list context or a hashref in scalar context. - -=cut -sub DescriptorMap { - return wantarray ? %DescriptorMap : \%DescriptorMap; -} -*descriptor_map = *DescriptorMap; -*get_sock_ref = *DescriptorMap; - sub _InitPoller { return if $DoneInit; -- EW