comparison rust/hg-core/src/dirstate/entry.rs @ 48157:b45c4dc65adc

dirstate-item: drop the legacy new_added constructor Nobody is calling it anymore. Its purposes has been filled. Differential Revision: https://phab.mercurial-scm.org/D11601
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 01 Oct 2021 09:16:53 +0200
parents d342815ff827
children da304f78a0e1
comparison
equal deleted inserted replaced
48156:d342815ff827 48157:b45c4dc65adc
123 mode_size: None, 123 mode_size: None,
124 mtime: None, 124 mtime: None,
125 } 125 }
126 } 126 }
127 127
128 pub fn new_added() -> Self {
129 Self {
130 flags: Flags::WDIR_TRACKED,
131 mode_size: None,
132 mtime: None,
133 }
134 }
135
136 pub fn new_normal(mode: i32, size: i32, mtime: i32) -> Self { 128 pub fn new_normal(mode: i32, size: i32, mtime: i32) -> Self {
137 Self { 129 Self {
138 flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED, 130 flags: Flags::WDIR_TRACKED | Flags::P1_TRACKED,
139 mode_size: Some((mode, size)), 131 mode_size: Some((mode, size)),
140 mtime: Some(mtime), 132 mtime: Some(mtime),