--- a/rust/hg-cpython/src/dirstate/dirstate_map.rs Sun Sep 13 22:14:25 2020 -0400
+++ b/rust/hg-cpython/src/dirstate/dirstate_map.rs Thu Apr 08 21:46:54 2021 +0200
@@ -547,14 +547,12 @@
) -> Ref<'a, RustDirstateMap> {
self.inner(py).borrow()
}
- #[cfg(not(feature = "dirstate-tree"))]
fn translate_key(
py: Python,
res: (&HgPathBuf, &DirstateEntry),
) -> PyResult<Option<PyBytes>> {
Ok(Some(PyBytes::new(py, res.0.as_bytes())))
}
- #[cfg(not(feature = "dirstate-tree"))]
fn translate_key_value(
py: Python,
res: (&HgPathBuf, &DirstateEntry),
@@ -565,24 +563,6 @@
make_dirstate_tuple(py, &entry)?,
)))
}
- #[cfg(feature = "dirstate-tree")]
- fn translate_key(
- py: Python,
- res: (HgPathBuf, DirstateEntry),
- ) -> PyResult<Option<PyBytes>> {
- Ok(Some(PyBytes::new(py, res.0.as_bytes())))
- }
- #[cfg(feature = "dirstate-tree")]
- fn translate_key_value(
- py: Python,
- res: (HgPathBuf, DirstateEntry),
- ) -> PyResult<Option<(PyBytes, PyObject)>> {
- let (f, entry) = res;
- Ok(Some((
- PyBytes::new(py, f.as_bytes()),
- make_dirstate_tuple(py, &entry)?,
- )))
- }
}
py_shared_iterator!(