Skip to content

Commit

Permalink
Drop the substitute API (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
aborgna-q authored Jun 26, 2023
1 parent cac5633 commit f868d5b
Show file tree
Hide file tree
Showing 6 changed files with 1 addition and 606 deletions.
1 change: 0 additions & 1 deletion benches/bench_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,5 @@ use criterion::criterion_main;
criterion_main! {
benchmarks::hierarchy::benches,
benchmarks::portgraph::benches,
benchmarks::substitute::benches,
benchmarks::toposort::benches,
}
1 change: 0 additions & 1 deletion benches/benchmarks/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,4 @@ pub mod generators;

pub mod hierarchy;
pub mod portgraph;
pub mod substitute;
pub mod toposort;
72 changes: 0 additions & 72 deletions benches/benchmarks/substitute.rs

This file was deleted.

1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ pub mod hierarchy;
pub mod multiportgraph;
pub mod portgraph;
pub mod secondary;
pub mod substitute;
pub mod unmanaged;
pub mod view;
pub mod weights;
Expand Down
8 changes: 1 addition & 7 deletions src/py_graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
use pyo3::{types::PyInt, IntoPy, PyErr, PyObject, Python};

use crate::{substitute::RewriteError, LinkError, NodeIndex, PortIndex};
use crate::{LinkError, NodeIndex, PortIndex};

impl From<PyInt> for NodeIndex {
fn from(x: PyInt) -> Self {
Expand All @@ -26,9 +26,3 @@ impl std::convert::From<LinkError> for PyErr {
pyo3::exceptions::PyRuntimeError::new_err(s.to_string())
}
}

impl std::convert::From<RewriteError> for PyErr {
fn from(s: RewriteError) -> Self {
pyo3::exceptions::PyRuntimeError::new_err(s.to_string())
}
}
Loading

0 comments on commit f868d5b

Please sign in to comment.