@@ -195,26 +195,13 @@ impl<ReportSpeciation: Boolean, ReportDispersal: Boolean>
195
195
} )
196
196
}
197
197
198
- #[ allow( clippy:: missing_panics_doc) ] // TODO: remove
199
198
pub fn report_events_unordered < P > ( & mut self , reporter : & mut P )
200
199
where
201
200
P : Reporter < ReportSpeciation = ReportSpeciation , ReportDispersal = ReportDispersal > ,
202
201
{
203
- // let mut last_time = 0.0_f64;
204
-
205
- // let mut times = alloc::vec::Vec::new();
206
-
207
202
for ( mask, event) in self . event_mask . iter_mut ( ) . zip ( self . event_buffer . iter ( ) ) {
208
203
if * mask. read ( ) {
209
204
let event: TypedEvent = unsafe { event. read ( ) . assume_some_read ( ) } . into ( ) ;
210
- // let new_time: f64 = match &event {
211
- // TypedEvent::Speciation(speciation) => speciation.event_time,
212
- // TypedEvent::Dispersal(dispersal) => dispersal.event_time,
213
- // }
214
- // .get();
215
- // times.push(Some(new_time));
216
- // assert!(new_time >= last_time, "{new_time} {last_time}");
217
- // last_time = new_time;
218
205
219
206
match event {
220
207
TypedEvent :: Speciation ( ref speciation) => {
@@ -224,14 +211,10 @@ impl<ReportSpeciation: Boolean, ReportDispersal: Boolean>
224
211
reporter. report_dispersal ( dispersal. into ( ) ) ;
225
212
} ,
226
213
}
227
- } /*else {
228
- times.push(None);
229
- }*/
214
+ }
230
215
231
216
mask. write ( false ) ;
232
217
}
233
-
234
- // panic!("{:?}", times);
235
218
}
236
219
237
220
pub fn max_events_per_individual ( & self ) -> usize {
0 commit comments