obsutil: drop deprecated methods (API)
authorMatt Harbison <matt_harbison@yahoo.com>
Fri, 02 Feb 2018 23:52:19 -0500
changeset 35893 78f33dedadd0
parent 35892 00a56c83ab64
child 35894 6289482f6ab5
obsutil: drop deprecated methods (API) .. api:: The following deprecated methods have been removed from obsutil: marker.precnode() and allprecursors(). Use marker.prednode() and allpredecessors() instead.
mercurial/obsutil.py
--- a/mercurial/obsutil.py	Fri Feb 02 23:48:25 2018 -0500
+++ b/mercurial/obsutil.py	Fri Feb 02 23:52:19 2018 -0500
@@ -33,12 +33,6 @@
             return False
         return self._data == other._data
 
-    def precnode(self):
-        msg = ("'marker.precnode' is deprecated, "
-               "use 'marker.prednode'")
-        util.nouideprecwarn(msg, '4.4')
-        return self.prednode()
-
     def prednode(self):
         """Predecessor changeset node identifier"""
         return self._data[0]
@@ -106,15 +100,6 @@
             else:
                 stack.append(precnodeid)
 
-def allprecursors(*args, **kwargs):
-    """ (DEPRECATED)
-    """
-    msg = ("'obsutil.allprecursors' is deprecated, "
-           "use 'obsutil.allpredecessors'")
-    util.nouideprecwarn(msg, '4.4')
-
-    return allpredecessors(*args, **kwargs)
-
 def allpredecessors(obsstore, nodes, ignoreflags=0):
     """Yield node for every precursors of <nodes>.