threads / patch / 16506

patch, 5 partsRemoved unused variables prev and next.

Subject: [PATCH 3/5] Removed unused variables prev and next.

## tl;dr

2 messages between Nov 27, 2008 and Nov 28, 2008. Diffs are folded; open one to read it.

replies: 1people: 2as markdown or json

William Pursell· Nov 27, 2008, 21:10 UTC · lore
---
  git-add--interactive.perl |    4 +---
  1 files changed, 1 insertions(+), 3 deletions(-)
Show changes to git-add--interactive.perl +1 −3
diff --git a/git-add--interactive.perl b/git-add--interactive.perl
index b530597..0d51cb2 100755
--- a/git-add--interactive.perl
+++ b/git-add--interactive.perl
@@ -878,7 +878,7 @@ sub patch_update_file {
  	$ix = 0;

  	while (1) {
-		my ($prev, $next, $commands, $undecided, $i);
+		my ($commands, $undecided, $i);
  		$commands = 'ynad';

  		if ($num <= $ix) {
@@ -886,7 +886,6 @@ sub patch_update_file {
  		}
  		for ($i = 0; $i < $ix; $i++) {
  			if (!defined $hunk[$i]{USE}) {
-				$prev = 1;
  				$commands .= 'k';
  				last;
  			}
@@ -896,7 +895,6 @@ sub patch_update_file {
  		}
  		for ($i = $ix + 1; $i < $num; $i++) {
  			if (!defined $hunk[$i]{USE}) {
-				$next = 1;
  				$commands .= 'j';
  				last;
  			}
-- 
1.6.0.4.782.geea74.dirty


-- 
William Pursell

← back to recent threads