obsolete: remove unused add2set/markerid functions
authorPatrick Mezard <patrick@mezard.eu>
Tue, 10 Jul 2012 15:14:58 +0200
changeset 349 9c156b9caa4f
parent 348 afbe4fc8de42
child 353 8feb73f733cb
obsolete: remove unused add2set/markerid functions
hgext/obsolete.py
--- a/hgext/obsolete.py	Tue Jul 10 01:05:13 2012 +0200
+++ b/hgext/obsolete.py	Tue Jul 10 15:14:58 2012 +0200
@@ -730,31 +730,6 @@
             newer.add(())
     return sorted(newer)
 
-### obsolete relation storage
-#############################
-def add2set(d, key, mark):
-    """add <mark> to a `set` in <d>[<key>]"""
-    d.setdefault(key, []).append(mark)
-
-def markerid(marker):
-    KEYS = ['subjects', "object", "date", "user", "reason"]
-    for key in KEYS:
-        assert key in marker
-    keys = sorted(marker.keys())
-    a = util.sha1()
-    for key in keys:
-        if key == 'subjects':
-            for sub in sorted(marker[key]):
-                a.update(sub)
-        elif key == 'id':
-            pass
-        else:
-            a.update(str(marker[key]))
-    a.update('\0')
-    return a.digest()
-
-
-
 ### repo subclassing
 #############################