Patchwork D12512: rust-dirstatemap: remove `__settitem__`

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

Comments

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

REVISION SUMMARY
  This is not used anywhere now.

REPOSITORY
  rHG Mercurial

BRANCH
  default

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

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
@@ -733,7 +733,3 @@ 
 
         def _drop_entry(self, f):
             self._map.drop_item_and_copy_source(f)
-
-        def __setitem__(self, key, value):
-            assert isinstance(value, DirstateItem)
-            self._map.set_dirstate_item(key, value)