# HG changeset patch # User Pierre-Yves David # Date 1344343108 -7200 # Node ID 1e042eeb2d1a3eb01775beab00f01e0f9a685473 # Parent 97d82fbd2c24c1541887506dffae7339f90de7d3 obsolete: remove unused repo method diff -r 97d82fbd2c24 -r 1e042eeb2d1a 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 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 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):