comparison rust/hg-core/src/dirstate/entry.rs @ 48067:d3eb5f50052c

dirstate: drop the from_p2_removed method It it no longer in use. Differential Revision: https://phab.mercurial-scm.org/D11515
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 28 Sep 2021 20:00:19 +0200
parents 7a2de2bd9fcd
children 80783e553bd5
comparison
equal deleted inserted replaced
48066:7a2de2bd9fcd 48067:d3eb5f50052c
176 pub fn removed(&self) -> bool { 176 pub fn removed(&self) -> bool {
177 self.tracked_in_any_parent() 177 self.tracked_in_any_parent()
178 && !self.flags.contains(Flags::WDIR_TRACKED) 178 && !self.flags.contains(Flags::WDIR_TRACKED)
179 } 179 }
180 180
181 pub fn from_p2_removed(&self) -> bool {
182 self.removed() && self.flags.contains(Flags::CLEAN_P2)
183 }
184
185 pub fn merged(&self) -> bool { 181 pub fn merged(&self) -> bool {
186 self.flags.contains(Flags::WDIR_TRACKED | Flags::MERGED) 182 self.flags.contains(Flags::WDIR_TRACKED | Flags::MERGED)
187 } 183 }
188 184
189 pub fn added(&self) -> bool { 185 pub fn added(&self) -> bool {