# HG changeset patch # User Pierre-Yves David # Date 2015-01-07 01:19:21 # Node ID 813aaaf2aff38b4d3e7ff9e4b6f1dc5d79f84745 # Parent 34d4b58580d1a8dfa02f95589928baf62463157e setdiscovery: remove '_setupsample' function It is now unused. diff --git a/mercurial/setdiscovery.py b/mercurial/setdiscovery.py --- a/mercurial/setdiscovery.py +++ b/mercurial/setdiscovery.py @@ -85,15 +85,6 @@ def _updatesample(dag, nodes, sample, qu 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