changeset 23817:813aaaf2aff3

setdiscovery: remove '_setupsample' function It is now unused.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 06 Jan 2015 17:19:21 -0800
parents 34d4b58580d1
children 45c95e2f99ad
files mercurial/setdiscovery.py
diffstat 1 files changed, 0 insertions(+), 9 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/setdiscovery.py	Wed Jan 07 20:44:20 2015 -0800
+++ b/mercurial/setdiscovery.py	Tue Jan 06 17:19:21 2015 -0800
@@ -85,15 +85,6 @@
                 dist.setdefault(p, d + 1)
                 visit.append(p)
 
-def _setupsample(dag, nodes, size):
-    always = dag.headsetofconnecteds(nodes)
-    desiredlen = size - len(always)
-    if desiredlen <= 0:
-        # This could be bad if there are very many heads, all unknown to the
-        # server. We're counting on long request support here.
-        return always, None, desiredlen
-    return always, set(), desiredlen
-
 def _takequicksample(dag, nodes, size):
     """takes a quick sample of size <size>