smartset: drop infamous ascending, descending
authorPierre-Yves David <pierre-yves.david@fb.com>
Tue, 07 Oct 2014 01:46:53 -0700
changeset 22835 8376d76f77dd
parent 22834 9e316ea0bf52
child 22836 5a831e4e6d7a
smartset: drop infamous ascending, descending All your friends are dead.
mercurial/revset.py
--- a/mercurial/revset.py	Tue Oct 07 01:41:14 2014 -0700
+++ b/mercurial/revset.py	Tue Oct 07 01:46:53 2014 -0700
@@ -2228,22 +2228,10 @@
         """True if the set will iterate in ascending order"""
         raise NotImplementedError()
 
-    def ascending(self):
-        """Sorts the set in ascending order (in place).
-
-        This is part of the mandatory API for smartset."""
-        self.sort()
-
     def isdescending(self):
         """True if the set will iterate in descending order"""
         raise NotImplementedError()
 
-    def descending(self):
-        """Sorts the set in descending order (in place).
-
-        This is part of the mandatory API for smartset."""
-        self.sort(reverse=True)
-
     def min(self):
         """return the minimum element in the set"""
         if self.fastasc is not None: