Skip to content

Commit 70969f7

Browse files
tbadiegitster
authored andcommitted
git-add--interactive.perl: Remove two unused variables
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]>
1 parent 8d8136c commit 70969f7

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

git-add--interactive.perl

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,6 @@ sub edit_hunk_manually {
10671067
}
10681068

10691069
sub diff_applies {
1070-
my $fh;
10711070
return run_git_apply($patch_mode_flavour{APPLY_CHECK} . ' --check',
10721071
map { @{$_->{TEXT}} } @_);
10731072
}
@@ -1514,7 +1513,6 @@ sub patch_update_file {
15141513
}
15151514

15161515
if (@result) {
1517-
my $fh;
15181516
my @patch = reassemble_patch($head->{TEXT}, @result);
15191517
my $apply_routine = $patch_mode_flavour{APPLY};
15201518
&$apply_routine(@patch);

0 commit comments

Comments
 (0)