rust-dirstatemap: remove unused `_refresh_entry` implementation
authorRaphaël Gomès <rgomes@octobus.net>
Mon, 28 Mar 2022 18:30:08 +0200
changeset 49113 2e63040a333b
parent 49112 a55934393078
child 49114 d27d25b7b4ce
rust-dirstatemap: remove unused `_refresh_entry` implementation This was only used in the newer APIs, all of which have been rewritten in Rust Differential Revision: https://phab.mercurial-scm.org/D12511
mercurial/dirstatemap.py
--- a/mercurial/dirstatemap.py	Wed Mar 23 17:19:32 2022 +0100
+++ b/mercurial/dirstatemap.py	Mon Mar 28 18:30:08 2022 +0200
@@ -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)