ui: drop the deprecated `getpath()`
authorMatt Harbison <matt_harbison@yahoo.com>
Tue, 03 Jan 2023 11:51:56 -0500
changeset 49838 b7f33ed1d909
parent 49837 dcf983a5f906
child 49839 a9602a84a442
ui: drop the deprecated `getpath()` This was deprecated in 5.9.
mercurial/ui.py
--- a/mercurial/ui.py	Tue Jan 03 11:48:21 2023 -0500
+++ b/mercurial/ui.py	Tue Jan 03 11:51:56 2023 -0500
@@ -1103,15 +1103,6 @@
     def paths(self):
         return urlutil.paths(self)
 
-    def getpath(self, *args, **kwargs):
-        """see paths.getpath for details
-
-        This method exist as `getpath` need a ui for potential warning message.
-        """
-        msg = b'ui.getpath is deprecated, use `get_*` functions from urlutil'
-        self.deprecwarn(msg, b'6.0')
-        return self.paths.getpath(self, *args, **kwargs)
-
     @property
     def fout(self):
         return self._fout