awooter: clean up unused code

This commit is contained in:
Lofty 2022-11-27 15:04:33 +00:00
parent cb7dba6dd5
commit 2c1a9d18ed

View File

@ -1,33 +1,16 @@
use std::{
collections::HashMap,
ptr::NonNull,
sync::{atomic::AtomicUsize, Mutex, RwLock}, time::Instant,
sync::atomic::AtomicUsize, time::Instant,
};
use colored::Colorize;
use indicatif::{ProgressBar, ProgressStyle, ParallelProgressIterator};
use rayon::prelude::*;
use crate::npnr::PortRef;
#[macro_use]
mod npnr;
enum Subpartition {
Part(Box<Partition>),
Nets(Vec<Net>),
}
struct Partition {
parts: [Option<Subpartition>; 4],
borders: [[Vec<npnr::WireId>; 4]; 4],
}
struct Net {
source: npnr::WireId,
sinks: Vec<npnr::WireId>,
}
#[no_mangle]
pub extern "C" fn npnr_router_awooter(ctx: Option<NonNull<npnr::Context>>) -> bool {
std::panic::catch_unwind(move || {
@ -192,12 +175,6 @@ fn partition_nets(
y_str.bold()
);
// BUG: because pips don't specify direction, this puts pips of opposite directions
// in the same entry. This is bad, since it could lead to selecting a pip of the
// wrong direction.
//
// Possibly fixed? I need to double-check.
let mut candidates = 0;
let mut north = 0;
let mut east = 0;