cleanup: remove committed output file and commented-out code

This commit is contained in:
Mikolaj Wielgus 2024-07-08 02:03:56 +02:00
parent b9a99237a1
commit f4054783d1
2 changed files with 6 additions and 13 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.2 KiB

View File

@ -1,7 +1,7 @@
use clap::{Error, Parser};
use std::fs::File;
use std::io::BufReader;
use std::io::prelude::*;
use clap::{Parser, Error};
use std::io::BufReader;
#[derive(Parser)]
struct Cli {
@ -11,7 +11,6 @@ struct Cli {
}
fn main() -> Result<(), std::io::Error> {
let args = Cli::parse();
let design_file = File::open(args.input)?;
@ -24,16 +23,10 @@ fn main() -> Result<(), std::io::Error> {
let history_file = File::open(history)?;
let mut history_bufread = BufReader::new(history_file);
let mut invoker = topola::autorouter::invoker::Invoker::new(
topola::autorouter::Autorouter::new(board).unwrap());
topola::autorouter::Autorouter::new(board).unwrap(),
);
invoker.replay(serde_json::from_reader(history_bufread).unwrap())
}
Ok(())
// let content = std::fs::read_to_string(&args.input).expect("could not read file");
// for line in content.lines() {
// if line.contains(&args.pattern) {
// println!("{}", line);
// }
// }
}