Rev 2476: Remove unused function. in http://bazaar.launchpad.net/~bzr/bzr/dirstate

Robert Collins robertc at robertcollins.net
Tue Mar 6 11:05:57 GMT 2007


At http://bazaar.launchpad.net/~bzr/bzr/dirstate

------------------------------------------------------------
revno: 2476
revision-id: robertc at robertcollins.net-20070306110403-37dnhgg7rshx97mp
parent: robertc at robertcollins.net-20070306105127-tdec4zgv1tkfgi1d
committer: Robert Collins <robertc at robertcollins.net>
branch nick: dirstate.dogfood
timestamp: Tue 2007-03-06 22:04:03 +1100
message:
  Remove unused function.
modified:
  bzrlib/mutabletree.py          mutabletree.py-20060906023413-4wlkalbdpsxi2r4y-2
  bzrlib/tests/workingtree_implementations/test_add_reference.py test_add_reference.p-20061211024451-yo9i1691dgbv1eyn-1
=== modified file 'bzrlib/mutabletree.py'
--- a/bzrlib/mutabletree.py	2007-03-06 10:29:01 +0000
+++ b/bzrlib/mutabletree.py	2007-03-06 11:04:03 +0000
@@ -216,7 +216,3 @@
             parent tree - i.e. a ghost.
         """
         raise NotImplementedError(self.set_parent_trees)
-
-    def iter_nested_trees(self):
-        for path, entry in self.iter_reference_entries():
-            yield self.get_nested_tree(entry, path)

=== modified file 'bzrlib/tests/workingtree_implementations/test_add_reference.py'
--- a/bzrlib/tests/workingtree_implementations/test_add_reference.py	2007-02-26 14:24:46 +0000
+++ b/bzrlib/tests/workingtree_implementations/test_add_reference.py	2007-03-06 11:04:03 +0000
@@ -114,10 +114,3 @@
                 tree.inventory['sub-tree-root-id'], 'sub-tree')
         finally:
             tree.unlock()
-
-    def test_iter_nested_trees(self):
-        tree, sub_tree = self.make_nested_trees()
-        iterator = tree.iter_nested_trees()
-        sub_tree2 = iterator.next()
-        self.assertEqual(sub_tree.basedir, sub_tree2.basedir)
-        self.assertRaises(StopIteration, iterator.next)



More information about the bazaar-commits mailing list