[Updated] D11849: dirstate: remove unused method

Alphare (Raphaël Gomès) phabricator at mercurial-scm.org
Tue Dec 7 14:38:26 UTC 2021


Closed by commit rHGc6d00759dc2b: dirstate: remove unused method (authored by Alphare).
This revision was automatically updated to reflect the committed changes.
This revision was not accepted when it landed; it landed in state "Needs Review".

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D11849?vs=31294&id=31346

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D11849/new/

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

AFFECTED FILES
  mercurial/dirstate.py

CHANGE DETAILS

diff --git a/mercurial/dirstate.py b/mercurial/dirstate.py
--- a/mercurial/dirstate.py
+++ b/mercurial/dirstate.py
@@ -591,14 +591,6 @@
                 msg %= (pycompat.bytestr(d), pycompat.bytestr(filename))
                 raise error.Abort(msg)
 
-    def _get_filedata(self, filename):
-        """returns"""
-        s = os.lstat(self._join(filename))
-        mode = s.st_mode
-        size = s.st_size
-        mtime = timestamp.mtime_of(s)
-        return (mode, size, mtime)
-
     def _discoverpath(self, path, normed, ignoremissing, exists, storemap):
         if exists is None:
             exists = os.path.lexists(os.path.join(self._root, path))



To: Alphare, #hg-reviewers, SimonSapin
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211207/5f8bb8ec/attachment-0002.html>


More information about the Mercurial-patches mailing list