mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-27 16:36:02 +03:00
remove Debug trait from Map and pathfinder -- not used in a long time
This commit is contained in:
parent
58d056cdbc
commit
ace3f0d285
@ -13,7 +13,7 @@ use serde_derive::{Deserialize, Serialize};
|
||||
use std::collections::{BTreeMap, BTreeSet, HashSet, VecDeque};
|
||||
use std::io;
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Map {
|
||||
roads: Vec<Road>,
|
||||
lanes: Vec<Lane>,
|
||||
|
@ -8,7 +8,7 @@ use std::collections::{BTreeMap, BTreeSet, VecDeque};
|
||||
|
||||
// TODO Make the graph smaller by considering RoadID, or even (directed?) bundles of roads based on
|
||||
// OSM way.
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct VehiclePathfinder {
|
||||
graph: StableGraph<DirectedRoadID, Distance>,
|
||||
#[serde(
|
||||
|
@ -313,7 +313,7 @@ fn validate(map: &Map, steps: &Vec<PathStep>) {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Pathfinder {
|
||||
car_graph: VehiclePathfinder,
|
||||
bike_graph: VehiclePathfinder,
|
||||
|
@ -10,7 +10,7 @@ use std::collections::BTreeMap;
|
||||
|
||||
// TODO Make the graph smaller by considering RoadID, or even (directed?) bundles of roads based on
|
||||
// OSM way.
|
||||
#[derive(Serialize, Deserialize, Debug)]
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct SidewalkPathfinder {
|
||||
graph: Graph<DirectedRoadID, Edge>,
|
||||
#[serde(
|
||||
|
Loading…
Reference in New Issue
Block a user