[PATCHES] remove unused variables
- From: Vincent Legoll <vincent legoll gmail com>
- To: meld-list gnome org
- Subject: [PATCHES] remove unused variables
- Date: Sun, 15 Feb 2009 13:36:57 +0100
Remove unused variables:
- date in bzr.py monotone.py & mercurial.py
- rename_tracking in monotone.py (unused-variable3.patch)
This last one had strangely already been marked as
unused but was left in place, why is that so ?
--
Vincent Legoll
Index: vc/mercurial.py
===================================================================
--- vc/mercurial.py (révision 1153)
+++ vc/mercurial.py (copie de travail)
@@ -78,7 +78,7 @@
hgfiles = {}
for statekey, name in [ (entry[0], entry[2:]) for entry in entries if entry.find("/")==-1 ]:
path = os.path.join(directory, name)
- rev, date, options, tag = "","","",""
+ rev, options, tag = "","",""
state = statemap.get(statekey, _vc.STATE_NONE)
retfiles.append( _vc.File(path, name, state, rev, tag, options) )
hgfiles[name] = 1
Index: vc/monotone.py
===================================================================
--- vc/monotone.py (révision 1153)
+++ vc/monotone.py (copie de travail)
@@ -261,7 +261,7 @@
mydir, name = os.path.split(mydir)
if mydir != directory:
continue
- rev, date, options, tag = "","","",""
+ rev, options, tag = "","",""
if path.endswith('/'):
retdirs.append( _vc.Dir(path[:-1], name, state))
else:
Index: vc/monotone.py
===================================================================
--- vc/monotone.py (révision 1153)
+++ vc/monotone.py (copie de travail)
@@ -226,7 +226,6 @@
tree_state = {}
for entry in entries:
mstate = entry[0:3]
- rename_tracking = entry[4:7] # unused
fname = entry[8:]
if mstate in statemap:
Index: vc/bzr.py
===================================================================
--- vc/bzr.py (révision 1153)
+++ vc/bzr.py (copie de travail)
@@ -111,7 +111,7 @@
mydir, name = os.path.split(mydir)
if mydir != directory:
continue
- rev, date, options, tag = "","","",""
+ rev, options, tag = "","",""
if path.endswith('/'):
retdirs.append( _vc.Dir(path[:-1], name, state))
else:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]