revset: remove the now unused _descgeneratorset class
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 03 Oct 2014 12:54:56 -0500
changeset 22761 d3068f7056cd
parent 22760 13e179dca666
child 22762 05b3238ba901
revset: remove the now unused _descgeneratorset class
mercurial/revset.py
--- a/mercurial/revset.py	Fri Oct 03 12:53:41 2014 -0500
+++ b/mercurial/revset.py	Fri Oct 03 12:54:56 2014 -0500
@@ -2726,19 +2726,6 @@
                 continue
         self._genlist.sort(reverse=reverse)
 
-class _descgeneratorset(_generatorset):
-    """Wrap a generator of descending elements for lazy iteration
-
-    Same structure as _generatorset but stops iterating after it goes past
-    the value when asked for membership and the element is not contained
-
-    This class does not duck-type baseset and it's only supposed to be used
-    internally
-    """
-
-    def __init__(self, gen):
-        super(_descgeneratorset, self).__init__(gen, iterasc=False)
-
 def spanset(repo, start=None, end=None):
     """factory function to dispatch between fullreposet and actual spanset