Patchwork D11443: dirstate: drop the `dirstatemap.dropfile` method

login
register
mail settings
Submitter phabricator
Date Sept. 16, 2021, 2:46 p.m.
Message ID <differential-rev-PHID-DREV-oea4lsmx6qksshdf3pnd-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/49759/
State Superseded
Headers show

Comments

phabricator - Sept. 16, 2021, 2:46 p.m.
marmoute created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  All use have been migrated.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D11443

AFFECTED FILES
  mercurial/dirstatemap.py

CHANGE DETAILS




To: marmoute, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/mercurial/dirstatemap.py b/mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py
+++ b/mercurial/dirstatemap.py
@@ -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)