changeset 5070:cfd000e0032d

obshistory: remove unused _successorsetdates() and _successorsetusers() They were used by preparesuccessorset() that was removed in the previous patch.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 13 Jan 2020 15:04:02 +0700
parents ada8b7413c0a
children 86adb777d8c9
files hgext3rd/evolve/obshistory.py
diffstat 1 files changed, 0 insertions(+), 26 deletions(-) [+]
line wrap: on
line diff
--- 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'),