changeset 49693:c4731eee1c8f

peer-or-repo: remove the now unused function We do not need it anymore.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 29 Nov 2022 22:22:18 +0100
parents ebb5e38fdafc
children dd62eb4d2ea5
files mercurial/hg.py
diffstat 1 files changed, 0 insertions(+), 10 deletions(-) [+]
line wrap: on
line diff
--- 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 []: