git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 3/5] Removed unused variables prev and next.
@ 2008-11-27 21:10 William Pursell
  2008-11-28  1:28 ` Junio C Hamano
  0 siblings, 1 reply; 2+ messages in thread
From: William Pursell @ 2008-11-27 21:10 UTC (permalink / raw)
  To: git



---
  git-add--interactive.perl |    4 +---
  1 files changed, 1 insertions(+), 3 deletions(-)

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

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 3/5] Removed unused variables prev and next.
  2008-11-27 21:10 [PATCH 3/5] Removed unused variables prev and next William Pursell
@ 2008-11-28  1:28 ` Junio C Hamano
  0 siblings, 0 replies; 2+ messages in thread
From: Junio C Hamano @ 2008-11-28  1:28 UTC (permalink / raw)
  To: William Pursell; +Cc: git

Hmm, I was hoping that use of these instead of $other =~ /,k/ might be
more efficient some day, but Ok.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2008-11-28  1:30 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-27 21:10 [PATCH 3/5] Removed unused variables prev and next William Pursell
2008-11-28  1:28 ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).