rust/hg-cpython/src/dirstate/dirstate_map.rs
changeset 49111 8a17fc501eda
parent 49108 119c7e2b4248
child 49112 a55934393078
--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs	Mon Mar 28 18:26:24 2022 +0200
+++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs	Wed Mar 23 17:16:10 2022 +0100
@@ -233,25 +233,6 @@
         Ok(PyNone)
     }
 
-    def removefile(
-        &self,
-        f: PyObject,
-        in_merge: PyObject
-    ) -> PyResult<PyObject> {
-        self.inner(py).borrow_mut()
-            .remove_file(
-                HgPath::new(f.extract::<PyBytes>(py)?.data(py)),
-                in_merge.extract::<PyBool>(py)?.is_true(),
-            )
-            .or_else(|_| {
-                Err(PyErr::new::<exc::OSError, _>(
-                    py,
-                    "Dirstate error".to_string(),
-                ))
-            })?;
-        Ok(py.None())
-    }
-
     def drop_item_and_copy_source(
         &self,
         f: PyBytes,