From 6d2546bb447637e278615482d84bbb9abcd9f018 Mon Sep 17 00:00:00 2001 From: Arne Keller Date: Thu, 17 Jan 2019 18:38:56 +0100 Subject: [PATCH] Cleanup --- Cargo.lock | 38 -------------------------------------- Cargo.toml | 1 - src/main.rs | 16 ---------------- 3 files changed, 55 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index ac8b877..45712a1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -4,7 +4,6 @@ version = "0.1.0" dependencies = [ "decorum 0.1.2", "geo 0.11.0", - "pathfinding 1.1.11-pre", "svg 0.5.11 (registry+https://github.com/rust-lang/crates.io-index)", ] @@ -54,11 +53,6 @@ dependencies = [ "serde_derive 1.0.84 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "either" -version = "1.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" - [[package]] name = "failure" version = "0.1.3" @@ -79,11 +73,6 @@ dependencies = [ "synstructure 0.10.1 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "fixedbitset" -version = "0.1.9" -source = "registry+https://github.com/rust-lang/crates.io-index" - [[package]] name = "geo" version = "0.11.0" @@ -102,19 +91,6 @@ dependencies = [ "rstar 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)", ] -[[package]] -name = "indexmap" -version = "1.0.2" -source = "registry+https://github.com/rust-lang/crates.io-index" - -[[package]] -name = "itertools" -version = "0.8.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -dependencies = [ - "either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "libc" version = "0.2.45" @@ -125,16 +101,6 @@ name = "num-traits" version = "0.2.6" source = "registry+https://github.com/rust-lang/crates.io-index" -[[package]] -name = "pathfinding" -version = "1.1.11-pre" -dependencies = [ - "fixedbitset 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)", - "indexmap 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)", - "itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)", - "num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)", -] - [[package]] name = "pdqselect" version = "0.1.0" @@ -241,12 +207,8 @@ source = "registry+https://github.com/rust-lang/crates.io-index" "checksum backtrace-sys 0.1.26 (registry+https://github.com/rust-lang/crates.io-index)" = "3fcce89e5ad5c8949caa9434501f7b55415b3e7ad5270cb88c75a8d35e8f1279" "checksum cc 1.0.28 (registry+https://github.com/rust-lang/crates.io-index)" = "bb4a8b715cb4597106ea87c7c84b2f1d452c7492033765df7f32651e66fcf749" "checksum cfg-if 0.1.6 (registry+https://github.com/rust-lang/crates.io-index)" = "082bb9b28e00d3c9d39cc03e64ce4cea0f1bb9b3fde493f0cbc008472d22bdf4" -"checksum either 1.5.0 (registry+https://github.com/rust-lang/crates.io-index)" = "3be565ca5c557d7f59e7cfcf1844f9e3033650c929c6566f511e8005f205c1d0" "checksum failure 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "6dd377bcc1b1b7ce911967e3ec24fa19c3224394ec05b54aa7b083d498341ac7" "checksum failure_derive 0.1.3 (registry+https://github.com/rust-lang/crates.io-index)" = "64c2d913fe8ed3b6c6518eedf4538255b989945c14c2a7d5cbff62a5e2120596" -"checksum fixedbitset 0.1.9 (registry+https://github.com/rust-lang/crates.io-index)" = "86d4de0081402f5e88cdac65c8dcdcc73118c1a7a465e2a05f0da05843a8ea33" -"checksum indexmap 1.0.2 (registry+https://github.com/rust-lang/crates.io-index)" = "7e81a7c05f79578dbc15793d8b619db9ba32b4577003ef3af1a91c416798c58d" -"checksum itertools 0.8.0 (registry+https://github.com/rust-lang/crates.io-index)" = "5b8467d9c1cebe26feb08c640139247fac215782d35371ade9a2136ed6085358" "checksum libc 0.2.45 (registry+https://github.com/rust-lang/crates.io-index)" = "2d2857ec59fadc0773853c664d2d18e7198e83883e7060b63c924cb077bd5c74" "checksum num-traits 0.2.6 (registry+https://github.com/rust-lang/crates.io-index)" = "0b3a5d7cc97d6d30d8b9bc8fa19bf45349ffe46241e8816f50f62f6d6aaabee1" "checksum pdqselect 0.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "4ec91767ecc0a0bbe558ce8c9da33c068066c57ecc8bb8477ef8c1ad3ef77c27" diff --git a/Cargo.toml b/Cargo.toml index be27d60..2f6c353 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -7,5 +7,4 @@ edition = "2018" [dependencies] geo = { path = "/home/arne/Documents/Code/Github/geo/geo" } svg = "0.5.11" -pathfinding = { path = "/home/arne/Documents/Code/Github/pathfinding" } decorum = { path = "/home/arne/Documents/Code/Github/decorum" } diff --git a/src/main.rs b/src/main.rs index 1be4526..ad209f7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,6 @@ use geo::*; use geo::prelude::*; -use pathfinding::prelude::*; - use decorum::R64; use decorum::Real; @@ -42,21 +40,7 @@ impl cmp::PartialOrd for RunState { fn main() { let bus = Point::new(0.0.into(), 0.0.into()); - /* - let house = Point::new(8.0, 20.0); - let targets = to_bus(bus, house); - - let mut lines = vec![]; - if targets.len() == 2 { - lines.push((Line::new(house, targets[0]), "orange")); - lines.push((Line::new(house, targets[1]), "orange")); - } - display::dump_svg( - &[(bus, "#ffa700"), (house, "green"), (targets[0], "red"), (targets[1], "red")], - &lines - ); - */ let data = input::read_input(); let house = data.start; let polys = data.polys;