obshistory: remove unused preparesuccessorset()
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 13 Jan 2020 14:59:08 +0700
changeset 5069 ada8b7413c0a
parent 5068 715c85f250e0
child 5070 cfd000e0032d
obshistory: remove unused preparesuccessorset() It was used in code that was removed in 901186e1fe05.
hgext3rd/evolve/obshistory.py
--- a/hgext3rd/evolve/obshistory.py	Sat Jan 11 20:10:06 2020 +0700
+++ b/hgext3rd/evolve/obshistory.py	Mon Jan 13 14:59:08 2020 +0700
@@ -857,12 +857,6 @@
 def obsfateverb(orig, *args, **kwargs):
     return _successorsetverb(*args, **kwargs)[b'verb']
 
-FORMATSSETSFUNCTIONS = [
-    _successorsetdates,
-    _successorsetusers,
-    _successorsetverb
-]
-
 def successorsetallmarkers(successorset, pathscache):
     """compute all successors of a successorset.
 
@@ -890,34 +884,3 @@
                     markers.add(mark)
 
     return markers
-
-def preparesuccessorset(successorset, rawmarkers):
-    """ For a successor set, get all related markers, compute the set of user,
-    the min date and the max date
-    """
-    hex = nodemod.hex
-
-    successorset = [hex(n) for n in successorset]
-
-    # hex the binary nodes in the markers
-    markers = []
-    for m in rawmarkers:
-        hexprec = hex(m[0])
-        hexsucs = tuple(hex(n) for n in m[1])
-        hexparents = None
-        if m[5] is not None:
-            hexparents = tuple(hex(n) for n in m[5])
-        newmarker = (hexprec, hexsucs) + m[2:5] + (hexparents,) + m[6:]
-        markers.append(newmarker)
-
-    # Format basic data
-    data = {
-        b"successors": sorted(successorset),
-        b"markers": sorted(markers)
-    }
-
-    # Call an extensible list of functions to override or add new data
-    for function in FORMATSSETSFUNCTIONS:
-        data.update(function(successorset, markers))
-
-    return data