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
--- 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()