changeset 49122:861dd252e2dc

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
author Raphaël Gomès <rgomes@octobus.net>
date Tue, 29 Mar 2022 00:58:58 +0200
parents 10edc54d18f1
children afe60def963d
files rust/hg-cpython/src/dirstate/dirstate_map.rs
diffstat 1 files changed, 0 insertions(+), 11 deletions(-) [+]
line wrap: on
line diff
--- 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<PyNone> {
-        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<PyBool> {
         let d = d.extract::<PyBytes>(py)?;
         Ok(self.inner(py).borrow_mut()