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

@ -31,8 +31,6 @@ impl Link {
} }
} }
struct Store<'a, W>(&'a mut W);
fn write_u8(w: &mut impl Write, n: u8) -> io::Result<()> { fn write_u8(w: &mut impl Write, n: u8) -> io::Result<()> {
w.write_all(&n.to_le_bytes()) w.write_all(&n.to_le_bytes())
} }

View file

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

View file

@ -1,11 +1,11 @@
use std::{fmt, iter, thread::panicking, time::Instant}; use std::{fmt, time::Instant};
use regex::Regex; use regex::Regex;
use thousands::Separable; use thousands::Separable;
use crate::{ use crate::{
data::{Data, Page}, data::{Data, Page},
graph::{Graph, NodeIdx}, graph::NodeIdx,
}; };
pub struct Counter { pub struct Counter {