peer-or-repo: remove the now unused function
We do not need it anymore.
--- 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 []: