File tree Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Expand file tree Collapse file tree 1 file changed +0
-5
lines changed Original file line number Diff line number Diff line change @@ -139,7 +139,6 @@ impl Graph {
139
139
node : start,
140
140
cost : 0 ,
141
141
} ) ;
142
- // let mut counter: usize = 0;
143
142
144
143
while let Some ( State { node, cost } ) = heap. pop ( ) {
145
144
if node == end {
@@ -151,7 +150,6 @@ impl Graph {
151
150
current_dist = dist[ prev] ;
152
151
}
153
152
path. reverse ( ) ;
154
- // println!("zero-counter {:?}", counter);
155
153
return Some ( ( path, cost as f32 / COST_MULTIPLICATOR as f32 ) ) ;
156
154
}
157
155
@@ -165,9 +163,6 @@ impl Graph {
165
163
node : current_way. target ,
166
164
cost : cost + self . get_edge_weight ( current_way, use_distance) ,
167
165
} ;
168
- // if next.cost < 1 {
169
- // counter += 1;
170
- // }
171
166
if next. cost < dist[ next. node ] . 0 {
172
167
dist[ next. node ] = ( next. cost , Some ( node) ) ;
173
168
heap. push ( next) ;
You can’t perform that action at this time.
0 commit comments