[meld] dirdiff: Cleaning up comments



commit 0aa0177bf8e3d35ee861b42ba48411bdd3a383f4
Author: Kai Willadsen <kai willadsen gmail com>
Date:   Thu Jan 16 07:25:02 2014 +1000

    dirdiff: Cleaning up comments

 meld/dirdiff.py |    9 ++-------
 1 files changed, 2 insertions(+), 7 deletions(-)
---
diff --git a/meld/dirdiff.py b/meld/dirdiff.py
index fa0edfa..4b8a06b 100644
--- a/meld/dirdiff.py
+++ b/meld/dirdiff.py
@@ -807,13 +807,8 @@ class DirDiff(melddoc.MeldDoc, gnomeglade.Component):
                     if self.model.iter_parent(it) is None:
                         expanded.add(rootpath)    # expand rootpath to show entire tree is empty
                 else:
-                    # assert ( roots all_dir and all_empty, STATE_NORMAL not in state_filters )
-
-                    # roots (and all their ancestors to top of tree) were let through in _filter_on_state()
-                    # although STATE_NORMAL is disabled, so that their contents could be compared; as roots
-                    # turned out empty their (and every empty ancestor's) branch in the tree can be removed
-
-                    assert it and not self.model.iter_has_child(it)
+                    # At this point, we have an empty folder tree node; we can
+                    # prune this and any ancestors that then end up empty.
                     while not self.model.iter_has_child(it):
                         parent = self.model.iter_parent(it)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]