obsolete: remove unused repo method
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Tue, 07 Aug 2012 14:38:28 +0200
changeset 436 1e042eeb2d1a
parent 435 97d82fbd2c24
child 437 48ac58354b7b
obsolete: remove unused repo method
hgext/obsolete.py
--- a/hgext/obsolete.py	Tue Aug 07 14:34:25 2012 +0200
+++ b/hgext/obsolete.py	Tue Aug 07 14:38:28 2012 +0200
@@ -781,7 +781,6 @@
     opush = repo.push
     o_updatebranchcache = repo.updatebranchcache
 
-    o_writejournal = repo._writejournal
     o_hook = repo.hook
 
 
@@ -794,20 +793,6 @@
                 args.pop('old')
             return o_hook(name, throw=False, **args)
 
-        ### Public method
-        # XXX Kill me
-        def obsoletedby(self, node):
-            """return the set of node that make <node> obsolete (obj)"""
-            others = set()
-            for marker in self.obsstore.precursors.get(node, []):
-                others.update(marker[1])
-            return others
-
-        # XXX Kill me
-        def obsolete(self, node):
-            """return the set of node that <node> make obsolete (sub)"""
-            return set(marker[0] for marker in self.obsstore.successors.get(node, []))
-
         # XXX move me on obssotre
         @util.propertycache
         def _obsoleteset(self):