bookmark: drop deletedivergent
authorBoris Feld <boris.feld@octobus.net>
Mon, 10 Jul 2017 20:06:15 +0200
changeset 33514 169c97bbd94c
parent 33513 904894edb205
child 33515 3325c7dcabaa
bookmark: drop deletedivergent It has no caller anymore.
mercurial/bookmarks.py
--- a/mercurial/bookmarks.py	Mon Jul 10 20:02:32 2017 +0200
+++ b/mercurial/bookmarks.py	Mon Jul 10 20:06:15 2017 +0200
@@ -292,16 +292,6 @@
     parents = [p.node() for p in repo[None].parents()]
     return (mark in marks and marks[mark] in parents)
 
-def deletedivergent(repo, deletefrom, bm):
-    '''Delete divergent versions of bm on nodes in deletefrom.
-
-    Return True if at least one bookmark was deleted, False otherwise.'''
-    bms = divergent2delete(repo, deletefrom, bm)
-    marks = repo._bookmarks
-    for b in bms:
-        del marks[b]
-    return bool(bms)
-
 def divergent2delete(repo, deletefrom, bm):
     """find divergent versions of bm on nodes in deletefrom.