--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs Wed Sep 22 14:54:42 2021 +0200
+++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs Wed Sep 22 15:23:03 2021 +0200
@@ -12,9 +12,9 @@
use std::convert::TryInto;
use cpython::{
- exc, ObjectProtocol, PyBool, PyBytes, PyClone, PyDict, PyErr, PyList,
- PyNone, PyObject, PyResult, PySet, PyString, Python, PythonObject,
- ToPyObject, UnsafePyLeaked,
+ exc, PyBool, PyBytes, PyClone, PyDict, PyErr, PyList, PyNone, PyObject,
+ PyResult, PySet, PyString, Python, PythonObject, ToPyObject,
+ UnsafePyLeaked,
};
use crate::{
@@ -185,26 +185,6 @@
Ok(PyNone)
}
- def clearambiguoustimes(
- &self,
- files: PyObject,
- now: PyObject
- ) -> PyResult<PyObject> {
- let files: PyResult<Vec<HgPathBuf>> = files
- .iter(py)?
- .map(|filename| {
- Ok(HgPathBuf::from_bytes(
- filename?.extract::<PyBytes>(py)?.data(py),
- ))
- })
- .collect();
- self.inner(py)
- .borrow_mut()
- .clear_ambiguous_times(files?, now.extract(py)?)
- .map_err(|e| v2_error(py, e))?;
- Ok(py.None())
- }
-
def other_parent_entries(&self) -> PyResult<PyObject> {
let mut inner_shared = self.inner(py).borrow_mut();
let set = PySet::empty(py)?;