exchange: drop unused '_getbookmarks' function
authorBoris Feld <boris.feld@octobus.net>
Tue, 17 Oct 2017 15:55:40 +0200
changeset 35041 6370ed6516a6
parent 35040 ef8518f14e4e
child 35042 5f82e26cbed1
exchange: drop unused '_getbookmarks' function The function was introduced in 8491845a75b2 in mid-November 2016 but is never used anywhere in core.
mercurial/exchange.py
--- 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