Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop the substitute API #82

Merged
merged 1 commit into from
Jun 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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