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 8CD1120248 for ; Tue, 16 Apr 2019 01:19:42 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH] www: remove unnecessary Git object reference Date: Tue, 16 Apr 2019 01:19:42 +0000 Message-Id: <20190416011942.19463-1-e@80x24.org> List-Id: We access the Git object via the Inbox object nowadays, so there's no point in having a shortcut to it, anymore. --- lib/PublicInbox/WWW.pm | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/PublicInbox/WWW.pm b/lib/PublicInbox/WWW.pm index e46a8b1..c24cde5 100644 --- a/lib/PublicInbox/WWW.pm +++ b/lib/PublicInbox/WWW.pm @@ -189,7 +189,6 @@ sub invalid_inbox ($$) { my ($ctx, $inbox) = @_; my $obj = $ctx->{www}->{pi_config}->lookup_name($inbox); if (defined $obj) { - $ctx->{git} = $obj->git; $ctx->{-inbox} = $obj; return; } -- EW