Skip to content

Commit 7277064

Browse files
committed
[web] return zero-weight counter, because pre is counting this
1 parent ba1fef2 commit 7277064

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

web/src/graph.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ impl Graph {
139139
node: start,
140140
cost: 0,
141141
});
142-
// let mut counter: usize = 0;
143142

144143
while let Some(State { node, cost }) = heap.pop() {
145144
if node == end {
@@ -151,7 +150,6 @@ impl Graph {
151150
current_dist = dist[prev];
152151
}
153152
path.reverse();
154-
// println!("zero-counter {:?}", counter);
155153
return Some((path, cost as f32 / COST_MULTIPLICATOR as f32));
156154
}
157155

@@ -165,9 +163,6 @@ impl Graph {
165163
node: current_way.target,
166164
cost: cost + self.get_edge_weight(current_way, use_distance),
167165
};
168-
// if next.cost < 1 {
169-
// counter += 1;
170-
// }
171166
if next.cost < dist[next.node].0 {
172167
dist[next.node] = (next.cost, Some(node));
173168
heap.push(next);

0 commit comments

Comments
 (0)