Mercurial > public > mercurial-scm > hg-stable
diff mercurial/pure/parsers.py @ 48176:1ab4523afe12
dirstate-item: drop the legacy new_normal constructor
Nobody is calling it anymore. Its purposes has been filled.
Differential Revision: https://phab.mercurial-scm.org/D11608
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 01 Oct 2021 09:29:50 +0200 |
parents | d0081dbca442 |
children | 77fc340acad7 |
line wrap: on
line diff
--- a/mercurial/pure/parsers.py Fri Oct 01 09:29:32 2021 +0200 +++ b/mercurial/pure/parsers.py Fri Oct 01 09:29:50 2021 +0200 @@ -109,20 +109,6 @@ self._mtime = parentfiledata[2] @classmethod - def new_normal(cls, mode, size, mtime): - """constructor to help legacy API to build a new "normal" item - - Should eventually be removed - """ - assert size != FROM_P2 - assert size != NONNORMAL - return cls( - wc_tracked=True, - p1_tracked=True, - parentfiledata=(mode, size, mtime), - ) - - @classmethod def from_v1_data(cls, state, mode, size, mtime): """Build a new DirstateItem object from V1 data