diff rust/hg-cpython/src/dirstate/item.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 b2af515b4faf
children 252d2f3f0d17
line wrap: on
line diff
--- a/rust/hg-cpython/src/dirstate/item.rs	Fri Oct 01 09:15:03 2021 +0200
+++ b/rust/hg-cpython/src/dirstate/item.rs	Fri Oct 01 09:16:53 2021 +0200
@@ -139,12 +139,6 @@
     }
 
     @classmethod
-    def new_added(_cls) -> PyResult<Self> {
-        let entry = DirstateEntry::new_added();
-        DirstateItem::create_instance(py, Cell::new(entry))
-    }
-
-    @classmethod
     def new_from_p2(_cls) -> PyResult<Self> {
         let entry = DirstateEntry::new_from_p2();
         DirstateItem::create_instance(py, Cell::new(entry))