Skip to content

Commit 87b6bb0

Browse files
committed
[pre] remove useless longest and shortest distance
1 parent 5904751 commit 87b6bb0

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

pre/src/main.rs

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -263,9 +263,7 @@ fn main() {
263263
ways.sort_by(|a, b| a.source.cmp(&b.source));
264264
fill_offset(&ways, &mut offset);
265265

266-
let mut counter: usize = 0;
267-
let mut longest_way: f32 = 0.0;
268-
let mut shortest_way: f32 = 200.0;
266+
//let mut counter: usize = 0;
269267

270268
for i in 0..ways.len() {
271269
let distance = calc_distance(
@@ -275,21 +273,13 @@ fn main() {
275273
nodes[ways[i].target].longitude,
276274
);
277275
ways[i].distance = (distance * COST_MULTIPLICATOR as f32) as usize;
276+
/*
278277
if ways[i].distance == 0 {
279278
counter += 1;
280279
}
281-
if distance >= longest_way {
282-
longest_way = distance;
283-
}
284-
if distance <= shortest_way {
285-
shortest_way = distance;
286-
}
280+
*/
287281
}
288-
/*
289-
println!("zero counter {:?}", counter);
290-
println!("long counter {:?}", longest_way);
291-
println!("short counter {:?}", shortest_way);
292-
*/
282+
//println!("zero counter {:?}", counter);
293283

294284
// serialize everything
295285
let result = Output {

0 commit comments

Comments
 (0)