Skip to content

Commit

Permalink
git-add--interactive.perl: Remove two unused variables
Browse files Browse the repository at this point in the history
The patch 8f0bef6 refactored this script and made the variable $fh
unneeded in subs diff_applies and patch_update_file, but forgot to
remove them.

Signed-off-by: Thomas Badie <[email protected]>
Signed-off-by: Junio C Hamano <[email protected]>
  • Loading branch information
tbadie authored and gitster committed Jun 25, 2012
1 parent 8d8136c commit 70969f7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions git-add--interactive.perl
Original file line number Diff line number Diff line change
Expand Up @@ -1067,7 +1067,6 @@ sub edit_hunk_manually {
}

sub diff_applies {
my $fh;
return run_git_apply($patch_mode_flavour{APPLY_CHECK} . ' --check',
map { @{$_->{TEXT}} } @_);
}
Expand Down Expand Up @@ -1514,7 +1513,6 @@ sub patch_update_file {
}

if (@result) {
my $fh;
my @patch = reassemble_patch($head->{TEXT}, @result);
my $apply_routine = $patch_mode_flavour{APPLY};
&$apply_routine(@patch);
Expand Down

0 comments on commit 70969f7

Please sign in to comment.