diff mercurial/pure/parsers.py @ 48171:252d2f3f0d17

dirstate-item: drop the legacy new_from_p2 constructor Nobody is calling it anymore. Its purposes has been filled. Differential Revision: https://phab.mercurial-scm.org/D11603
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 01 Oct 2021 09:23:28 +0200
parents da304f78a0e1
children 898de425bcd6
line wrap: on
line diff
--- a/mercurial/pure/parsers.py	Fri Oct 01 09:21:52 2021 +0200
+++ b/mercurial/pure/parsers.py	Fri Oct 01 09:23:28 2021 +0200
@@ -109,14 +109,6 @@
             self._mtime = parentfiledata[2]
 
     @classmethod
-    def new_from_p2(cls):
-        """constructor to help legacy API to build a new "from_p2" item
-
-        Should eventually be removed
-        """
-        return cls(wc_tracked=True, p2_info=True)
-
-    @classmethod
     def new_possibly_dirty(cls):
         """constructor to help legacy API to build a new "possibly_dirty" item