mirror of https://codeberg.org/topola/topola.git
cleanup: remove committed output file and commented-out code
This commit is contained in:
parent
b9a99237a1
commit
f4054783d1
Binary file not shown.
|
Before Width: | Height: | Size: 4.2 KiB |
|
|
@ -1,7 +1,7 @@
|
||||||
|
use clap::{Error, Parser};
|
||||||
use std::fs::File;
|
use std::fs::File;
|
||||||
use std::io::BufReader;
|
|
||||||
use std::io::prelude::*;
|
use std::io::prelude::*;
|
||||||
use clap::{Parser, Error};
|
use std::io::BufReader;
|
||||||
|
|
||||||
#[derive(Parser)]
|
#[derive(Parser)]
|
||||||
struct Cli {
|
struct Cli {
|
||||||
|
|
@ -11,7 +11,6 @@ struct Cli {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn main() -> Result<(), std::io::Error> {
|
fn main() -> Result<(), std::io::Error> {
|
||||||
|
|
||||||
let args = Cli::parse();
|
let args = Cli::parse();
|
||||||
|
|
||||||
let design_file = File::open(args.input)?;
|
let design_file = File::open(args.input)?;
|
||||||
|
|
@ -24,16 +23,10 @@ fn main() -> Result<(), std::io::Error> {
|
||||||
let history_file = File::open(history)?;
|
let history_file = File::open(history)?;
|
||||||
let mut history_bufread = BufReader::new(history_file);
|
let mut history_bufread = BufReader::new(history_file);
|
||||||
let mut invoker = topola::autorouter::invoker::Invoker::new(
|
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())
|
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() {
|
Ok(())
|
||||||
// if line.contains(&args.pattern) {
|
}
|
||||||
// println!("{}", line);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue