[meld] Clean up unused assignments
- From: Kai Willadsen <kaiw src gnome org>
- To: svn-commits-list gnome org
- Subject: [meld] Clean up unused assignments
- Date: Thu, 25 Jun 2009 07:17:44 +0000 (UTC)
commit 37d23e8322d3cea968d7d08f86a8e835f65d1bab
Author: Kai Willadsen <kai willadsen gmail com>
Date: Mon Jun 8 22:17:10 2009 +1000
Clean up unused assignments
diffutil.py | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/diffutil.py b/diffutil.py
index 5800b81..b7b5be4 100644
--- a/diffutil.py
+++ b/diffutil.py
@@ -179,7 +179,6 @@ class Differ(object):
seq0, seq1 = seq0[:], seq1[:]
seq = seq0, seq1
LO, HI = 1,2
- block = [0,0,0,0,0,0]
while len(seq0) or len(seq1):
if len(seq0) == 0:
base_seq = 1
@@ -210,7 +209,6 @@ class Differ(object):
if high_mark < other_diff[HI]:
high_seq ^= 1
- high_diff = other_diff
high_mark = other_diff[HI]
if len(using[0])==0:
@@ -220,7 +218,7 @@ class Differ(object):
assert len(using[0])==1
yield using[0][0], None
else:
- l0, h0, l1, h1, l2, h2 = block = self._merge_blocks(using)
+ l0, h0, l1, h1, l2, h2 = self._merge_blocks(using)
if h0-l0 == h2-l2 and texts[0][l0:h0] == texts[2][l2:h2]:
if l1 != h1:
tag = "replace"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]