mercurial/dirstate.py
changeset 47535 6025353c9c55
parent 47534 e53a42dce923
child 47536 8e4b9fe31334
--- a/mercurial/dirstate.py	Sun Jul 04 02:21:59 2021 +0200
+++ b/mercurial/dirstate.py	Sun Jul 04 02:28:08 2021 +0200
@@ -563,8 +563,7 @@
 
     def drop(self, f):
         '''Drop a file from the dirstate'''
-        oldstate = self[f]
-        if self._map.dropfile(f, oldstate):
+        if self._map.dropfile(f):
             self._dirty = True
             self._updatedfiles.add(f)
             self._map.copymap.pop(f, None)
@@ -1308,7 +1307,6 @@
             # general. That is much slower than simply accessing and storing the
             # tuple members one by one.
             t = dget(fn)
-            state = t.state
             mode = t[1]
             size = t[2]
             time = t[3]