Patchwork D12465: rust-dirstatemap: remove unused `_refresh_entry` implementation

login
register
mail settings
Submitter phabricator
Date April 6, 2022, 2:12 p.m.
Message ID <differential-rev-PHID-DREV-mumziml6fofje2x5d2nh-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50810/
State New
Headers show

Comments

phabricator - April 6, 2022, 2:12 p.m.
Alphare created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REVISION SUMMARY
  This was only used in the newer APIs, all of which have been rewritten in Rust

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

AFFECTED FILES
  mercurial/dirstatemap.py

CHANGE DETAILS




To: Alphare, #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
@@ -701,12 +701,6 @@ 
 
         ### code related to manipulation of entries and copy-sources
 
-        def _refresh_entry(self, f, entry):
-            if not entry.any_tracked:
-                self._map.drop_item_and_copy_source(f)
-            else:
-                self._map.addfile(f, entry)
-
         def set_tracked(self, f):
             return self._map.set_tracked(f)