changeset 48003:5e7eea915019

dirstate: drop the `dirstatemap.dropfile` method All use have been migrated. Differential Revision: https://phab.mercurial-scm.org/D11443
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 15 Sep 2021 18:41:38 +0200
parents 44fc75bd1580
children b642a6298ce0
files mercurial/dirstatemap.py
diffstat 1 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/dirstatemap.py	Thu Sep 16 15:21:22 2021 +0200
+++ b/mercurial/dirstatemap.py	Wed Sep 15 18:41:38 2021 +0200
@@ -320,17 +320,6 @@
                 entry.set_untracked()
             return True
 
-    def dropfile(self, f):
-        """
-        Remove a file from the dirstate.  Returns True if the file was
-        previously recorded.
-        """
-        old_entry = self._map.pop(f, None)
-        self._dirs_decr(f, old_entry=old_entry)
-        self.nonnormalset.discard(f)
-        self.copymap.pop(f, None)
-        return old_entry is not None
-
     def clearambiguoustimes(self, files, now):
         for f in files:
             e = self.get(f)