changeset 35041:6370ed6516a6

exchange: drop unused '_getbookmarks' function The function was introduced in 8491845a75b2 in mid-November 2016 but is never used anywhere in core.
author Boris Feld <boris.feld@octobus.net>
date Tue, 17 Oct 2017 15:55:40 +0200
parents ef8518f14e4e
children 5f82e26cbed1
files mercurial/exchange.py
diffstat 1 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/exchange.py	Sun Oct 15 15:21:47 2017 +0200
+++ b/mercurial/exchange.py	Tue Oct 17 15:55:40 2017 +0200
@@ -1785,17 +1785,6 @@
     outgoing = _computeoutgoing(repo, heads, common)
     bundle2.addparttagsfnodescache(repo, bundler, outgoing)
 
-def _getbookmarks(repo, **kwargs):
-    """Returns bookmark to node mapping.
-
-    This function is primarily used to generate `bookmarks` bundle2 part.
-    It is a separate function in order to make it easy to wrap it
-    in extensions. Passing `kwargs` to the function makes it easy to
-    add new parameters in extensions.
-    """
-
-    return dict(bookmod.listbinbookmarks(repo))
-
 def check_heads(repo, their_heads, context):
     """check if the heads of a repo have been modified