peer-or-repo: remove the now unused function
authorPierre-Yves David <pierre-yves.david@octobus.net>
Tue, 29 Nov 2022 22:22:18 +0100
changeset 49693 c4731eee1c8f
parent 49692 ebb5e38fdafc
child 49694 dd62eb4d2ea5
peer-or-repo: remove the now unused function We do not need it anymore.
mercurial/hg.py
--- a/mercurial/hg.py	Tue Nov 29 22:21:19 2022 +0100
+++ b/mercurial/hg.py	Tue Nov 29 22:22:18 2022 +0100
@@ -192,16 +192,6 @@
 wirepeersetupfuncs = []
 
 
-def _peerorrepo(
-    ui, path, create=False, presetupfuncs=None, intents=None, createopts=None
-):
-    """return a repository object for the specified path"""
-    cls = _peerlookup(path)
-    obj = cls.instance(ui, path, create, intents=intents, createopts=createopts)
-    _setup_repo_or_peer(ui, obj, presetupfuncs)
-    return obj
-
-
 def _setup_repo_or_peer(ui, obj, presetupfuncs=None):
     ui = getattr(obj, "ui", ui)
     for f in presetupfuncs or []: