diff -r 03fdd4d7b5bd -r 0b81440e2a73 rust/hg-cpython/src/revlog.rs --- a/rust/hg-cpython/src/revlog.rs Sun Oct 29 12:01:57 2023 +0100 +++ b/rust/hg-cpython/src/revlog.rs Sun Oct 29 12:07:05 2023 +0100 @@ -31,17 +31,6 @@ use std::{cell::RefCell, collections::HashMap}; use vcsgraph::graph::Graph as VCSGraph; -/// Return a Struct implementing the Graph trait -pub(crate) fn pyindex_to_graph( - py: Python, - index: PyObject, -) -> PyResult { - match index.extract::(py) { - Ok(midx) => Ok(midx.clone_cindex(py)), - Err(_) => cindex::Index::new(py, index), - } -} - pub struct PySharedIndex { /// The underlying hg-core index pub(crate) inner: &'static hg::index::Index,