From 9cf83074ce8b46254ef6639d87e4e64372cc552b Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Mon, 6 Sep 2021 12:58:03 +0000 Subject: lei_auth: simplify users There's no need to alias net_merge_all in each WQ class which uses LeiAuth, `$obj->$sub' works even when `$sub' is a fully-qualified subroutine name with `::' in it. perlobj(1) documents it under "Method Call Variations". --- lib/PublicInbox/LeiIndex.pm | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib/PublicInbox/LeiIndex.pm') diff --git a/lib/PublicInbox/LeiIndex.pm b/lib/PublicInbox/LeiIndex.pm index ef3e4d0b..1b327a2c 100644 --- a/lib/PublicInbox/LeiIndex.pm +++ b/lib/PublicInbox/LeiIndex.pm @@ -43,6 +43,4 @@ for my $m (qw(pmdir_cb input_net_cb)) { *ipc_atfork_child = \&PublicInbox::LeiInput::input_only_atfork_child; *net_merge_all_done = \&PublicInbox::LeiInput::input_only_net_merge_all_done; -# the following works even when LeiAuth is lazy-loaded -*net_merge_all = \&PublicInbox::LeiAuth::net_merge_all; 1; -- cgit v1.2.3-24-ge0c7