obshistory: remove unused _successorsetdates() and _successorsetusers()
authorAnton Shestakov <av6@dwimlabs.net>
Mon, 13 Jan 2020 15:04:02 +0700
changeset 5070 cfd000e0032d
parent 5069 ada8b7413c0a
child 5071 86adb777d8c9
obshistory: remove unused _successorsetdates() and _successorsetusers() They were used by preparesuccessorset() that was removed in the previous patch.
hgext3rd/evolve/obshistory.py
--- a/hgext3rd/evolve/obshistory.py	Mon Jan 13 14:59:08 2020 +0700
+++ b/hgext3rd/evolve/obshistory.py	Mon Jan 13 15:04:02 2020 +0700
@@ -751,32 +751,6 @@
 
     return (fate, successors)
 
-def _successorsetdates(successorset, markers):
-    """returns the max date and the min date of the markers list
-    """
-
-    if not markers:
-        return {}
-
-    dates = [m[4] for m in markers]
-
-    return {
-        b'min_date': min(dates),
-        b'max_date': max(dates)
-    }
-
-def _successorsetusers(successorset, markers):
-    """ Returns a sorted list of markers users without duplicates
-    """
-    if not markers:
-        return {}
-
-    # Check that user is present in meta
-    markersmeta = [dict(m[3]) for m in markers]
-    users = set(meta.get(b'user') for meta in markersmeta if meta.get(b'user'))
-
-    return {b'users': sorted(users)}
-
 EFFECTMAPPING = util.sortdict([
     (obsutil.DESCCHANGED, b'description'),
     (obsutil.METACHANGED, b'meta'),