rust/hg-cpython/src/revlog.rs
changeset 51242 0b81440e2a73
parent 51236 7eea2e4109ae
child 51243 41e19e8a6133
--- 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<cindex::Index> {
-    match index.extract::<MixedIndex>(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,