mercurial/dirstate.py
changeset 47912 91afee6f959e
parent 47911 3d2c17c5d7f2
child 47913 3911c61f09c6
--- a/mercurial/dirstate.py	Tue Aug 24 21:09:01 2021 +0200
+++ b/mercurial/dirstate.py	Tue Aug 24 21:09:20 2021 +0200
@@ -757,24 +757,6 @@
             self._addpath(f, from_p2=True)
         self._map.copymap.pop(f, None)
 
-    def add(self, f):
-        '''Mark a file added.'''
-        if self.pendingparentchange():
-            util.nouideprecwarn(
-                b"do not use `add` inside of update/merge context."
-                b" Use `update_file`",
-                b'6.0',
-                stacklevel=2,
-            )
-        else:
-            util.nouideprecwarn(
-                b"do not use `add` outside of update/merge context."
-                b" Use `set_tracked`",
-                b'6.0',
-                stacklevel=2,
-            )
-        self._add(f)
-
     def _add(self, filename):
         """internal function to mark a file as added"""
         self._addpath(filename, added=True)