dirstate: removed the now unused `_add` method
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 15 Sep 2021 09:50:44 +0200
changeset 47986 72b80a0124f8
parent 47985 7e65ca30fb91
child 47987 dd267f16042f
dirstate: removed the now unused `_add` method Differential Revision: https://phab.mercurial-scm.org/D11426
mercurial/dirstate.py
--- a/mercurial/dirstate.py	Wed Sep 15 18:18:16 2021 +0200
+++ b/mercurial/dirstate.py	Wed Sep 15 09:50:44 2021 +0200
@@ -744,10 +744,6 @@
         self._addpath(f, possibly_dirty=True)
         self._map.copymap.pop(f, None)
 
-    def _add(self, filename):
-        """internal function to mark a file as added"""
-        self._addpath(filename, added=True)
-
     def _drop(self, filename):
         """internal function to drop a file from the dirstate"""
         if self._map.dropfile(filename):