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.
--- 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>.