# HG changeset patch # User Yuya Nishihara # Date 1442151298 -32400 # Node ID 5c217bcc4597ae4d8cae4912a4c3db61e9ac6d0b # Parent 4b685712fa454919c121d8d1c967da35b0522dd5 obsolete: remove unused _knownrevs function The call site was removed at cd62532c62a1. diff -r 4b685712fa45 -r 5c217bcc4597 mercurial/obsolete.py --- a/mercurial/obsolete.py Thu Sep 17 16:08:10 2015 -0700 +++ b/mercurial/obsolete.py Sun Sep 13 22:34:58 2015 +0900 @@ -1045,16 +1045,6 @@ cache[current] = final return cache[initialnode] -def _knownrevs(repo, nodes): - """yield revision numbers of known nodes passed in parameters - - Unknown revisions are silently ignored.""" - torev = repo.changelog.nodemap.get - for n in nodes: - rev = torev(n) - if rev is not None: - yield rev - # mapping of 'set-name' -> cachefuncs = {} def cachefor(name):