baseset: remove `set()` definition
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 10 Oct 2014 13:07:35 -0700
changeset 22887 b67e24f02205
parent 22886 c8afe69cc54f
child 22888 ca7a3f398637
baseset: remove `set()` definition All my friends are dead.
mercurial/revset.py
--- a/mercurial/revset.py	Fri Oct 10 11:27:57 2014 -0700
+++ b/mercurial/revset.py	Fri Oct 10 13:07:35 2014 -0700
@@ -2330,17 +2330,6 @@
     def fastdesc(self):
         return reversed(self._asclist)
 
-    def set(self):
-        """Returns a set or a smartset containing all the elements.
-
-        The returned structure should be the fastest option for membership
-        testing.
-
-        This is part of the mandatory API for smartset."""
-        if not self._set:
-            self._set = set(self)
-        return self._set
-
     @util.propertycache
     def __contains__(self):
         return self._set.__contains__