Rev 4398: Remove some += and unused code anyway. in http://bazaar.launchpad.net/~jameinel/bzr/1.16-better_heads

John Arbash Meinel john at arbash-meinel.com
Thu Jun 11 17:47:43 BST 2009


At http://bazaar.launchpad.net/~jameinel/bzr/1.16-better_heads

------------------------------------------------------------
revno: 4398
revision-id: john at arbash-meinel.com-20090611164732-yqh4dyu0i4kwtecj
parent: john at arbash-meinel.com-20090611164617-ojhy89zgig81yuez
committer: John Arbash Meinel <john at arbash-meinel.com>
branch nick: 1.16-better_heads
timestamp: Thu 2009-06-11 11:47:32 -0500
message:
  Remove some += and unused code anyway.
-------------- next part --------------
=== modified file 'bzrlib/_known_graph_pyx.pyx'
--- a/bzrlib/_known_graph_pyx.pyx	2009-06-11 16:46:17 +0000
+++ b/bzrlib/_known_graph_pyx.pyx	2009-06-11 16:47:32 +0000
@@ -259,11 +259,9 @@
         for node in tails:
             node.gdfo = 1
             heappush(todo, (1, node))
-        processed = 0
         max_gdfo = len(self._nodes) + 1
         while todo:
             gdfo, node = heappop(todo)
-            processed += 1
             if node.gdfo != -1 and gdfo < node.gdfo:
                 # This node was reached from a longer path, we assume it was
                 # enqued correctly with the longer gdfo, so don't continue



More information about the bazaar-commits mailing list