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-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 0BF581FA12 for ; Wed, 27 Jan 2021 09:42:31 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 2/9] lei: drop "git" command forwarding Date: Wed, 27 Jan 2021 03:42:23 -0600 Message-Id: <20210127094230.31174-3-e@80x24.org> In-Reply-To: <20210127094230.31174-1-e@80x24.org> References: <20210127094230.31174-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: It was intended as a proof-of-concept and no longer needed. --- lib/PublicInbox/LEI.pm | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index effc6c52..abd7fc48 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -679,18 +679,6 @@ sub lei__complete { # proto parsing. } -sub reap_exec { # dwaitpid callback - my ($self, $pid) = @_; - x_it($self, $?); -} - -sub lei_git { # support passing through random git commands - my ($self, @argv) = @_; - my %rdr = map { $_ => $self->{$_} } (0..2); - my $pid = spawn(['git', @argv], $self->{env}, \%rdr); - dwaitpid($pid, \&reap_exec, $self); -} - sub exec_buf ($$) { my ($argv, $env) = @_; my $argc = scalar @$argv;