obshistory: remove unused successorsetallmarkers()
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 13 Jan 2020 15:05:34 +0700
changeset 5071 86adb777d8c9
parent 5070 cfd000e0032d
child 5072 3c1a5754d983
obshistory: remove unused successorsetallmarkers() This function was used in code that was removed in 901186e1fe05.
hgext3rd/evolve/obshistory.py
--- a/hgext3rd/evolve/obshistory.py	Mon Jan 13 15:04:02 2020 +0700
+++ b/hgext3rd/evolve/obshistory.py	Mon Jan 13 15:05:34 2020 +0700
@@ -830,31 +830,3 @@
 @eh.wrapfunction(obsutil, 'obsfateverb')
 def obsfateverb(orig, *args, **kwargs):
     return _successorsetverb(*args, **kwargs)[b'verb']
-
-def successorsetallmarkers(successorset, pathscache):
-    """compute all successors of a successorset.
-
-    pathscache must contains all successors starting from selected nodes
-    or revision. This way, iterating on each successor, we can take all
-    precursors and have the subgraph of all obsmarkers between roots to
-    successors.
-    """
-
-    markers = set()
-    seen = set()
-
-    for successor in successorset:
-        stack = [successor]
-
-        while stack:
-            element = stack.pop()
-            seen.add(element)
-            for prec, mark in pathscache.get(element, []):
-                if prec not in seen:
-                    # Process element precursors
-                    stack.append(prec)
-
-                if mark not in markers:
-                    markers.add(mark)
-
-    return markers