Remove unused code

This commit is contained in:
Joscha 2024-12-31 15:13:17 +01:00
parent 693ae9eb81
commit ab7b7295ca
3 changed files with 2 additions and 10 deletions

View file

@ -89,8 +89,6 @@ impl SubAssign<u32> for NodeIdx {
pub struct EdgeIdx(pub u32);
impl EdgeIdx {
pub const NONE: Self = Self(u32::MAX);
#[inline]
pub const fn new(value: usize) -> Self {
Self(value as u32)
@ -185,10 +183,6 @@ pub struct Graph {
}
impl Graph {
pub fn new() -> Self {
Self::default()
}
pub fn with_capacity(nodes: usize, edges: usize) -> Self {
Self {
nodes: Vec::with_capacity(nodes),