# HG changeset patch # User Raphaël Gomès # Date 1648508338 -7200 # Node ID 861dd252e2dccef13b6f2a002a9f4f5a099de261 # Parent 10edc54d18f11d2e7c9612553d1e1149b65918bc rust-cpython: remove unused API to `drop_entry_and_copy_source` This is not used anywhere anymore and its use cases are covered by the new API Differential Revision: https://phab.mercurial-scm.org/D12520 diff -r 10edc54d18f1 -r 861dd252e2dc rust/hg-cpython/src/dirstate/dirstate_map.rs --- a/rust/hg-cpython/src/dirstate/dirstate_map.rs Tue Mar 29 00:57:06 2022 +0200 +++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs Tue Mar 29 00:58:58 2022 +0200 @@ -205,17 +205,6 @@ Ok(PyNone) } - def drop_item_and_copy_source( - &self, - f: PyBytes, - ) -> PyResult { - self.inner(py) - .borrow_mut() - .drop_entry_and_copy_source(HgPath::new(f.data(py))) - .map_err(|e |dirstate_error(py, e))?; - Ok(PyNone) - } - def hastrackeddir(&self, d: PyObject) -> PyResult { let d = d.extract::(py)?; Ok(self.inner(py).borrow_mut()