Mercurial > evolve
changeset 6269:16f6b18b9ec0
topicmap: remove unused branchtip and branchheads methods of _topiccache
These methods aren't unused per say, but they never receive topic keyword from
any callers, so they simply always call+return super() version of themselves.
author | Anton Shestakov <av6@dwimlabs.net> |
---|---|
date | Fri, 08 Jul 2022 17:52:25 +0400 |
parents | 63d6cc96557c |
children | 00d1551bfa8c |
files | hgext3rd/topic/topicmap.py |
diffstat | 1 files changed, 0 insertions(+), 13 deletions(-) [+] |
line wrap: on
line diff
--- a/hgext3rd/topic/topicmap.py Fri Jul 08 17:49:48 2022 +0400 +++ b/hgext3rd/topic/topicmap.py Fri Jul 08 17:52:25 2022 +0400 @@ -182,19 +182,6 @@ new.phaseshash = self.phaseshash return new - def branchtip(self, branch, topic=b''): - '''Return the tipmost open head on branch head, otherwise return the - tipmost closed head on branch. - Raise KeyError for unknown branch.''' - if topic: - branch = b'%s:%s' % (branch, topic) - return super(_topiccache, self).branchtip(branch) - - def branchheads(self, branch, closed=False, topic=b''): - if topic: - branch = b'%s:%s' % (branch, topic) - return super(_topiccache, self).branchheads(branch, closed=closed) - def validfor(self, repo): """Is the cache content valid regarding a repo