mercurial/scmutil.py
changeset 45884 98399dd1b96c
parent 45883 1817b66897ad
child 45885 600aec73f309
--- a/mercurial/scmutil.py	Thu Nov 19 11:23:59 2020 -0800
+++ b/mercurial/scmutil.py	Fri Nov 20 08:51:45 2020 -0800
@@ -142,18 +142,6 @@
         ui.status(_(b"no changes found\n"))
 
 
-def formatparse(write, inst):
-    if inst.location is not None:
-        write(
-            _(b"hg: parse error at %s: %s\n")
-            % (pycompat.bytestr(inst.location), inst.message)
-        )
-    else:
-        write(_(b"hg: parse error: %s\n") % inst.message)
-    if inst.hint:
-        write(_(b"(%s)\n") % inst.hint)
-
-
 def callcatch(ui, func):
     """call func() with global exception handling