@@ -12,7 +12,7 @@ use crate::{
12
12
utils:: async_msg:: MessageBox ,
13
13
} ;
14
14
use chain_core:: { packer:: Codec , property:: Serialize } ;
15
- use chain_impl_mockchain:: { block :: BlockDate , fragment:: Contents , transaction:: Transaction } ;
15
+ use chain_impl_mockchain:: { fragment:: Contents , transaction:: Transaction } ;
16
16
use futures:: { channel:: mpsc:: SendError , sink:: SinkExt } ;
17
17
use jormungandr_lib:: {
18
18
interfaces:: {
@@ -312,7 +312,6 @@ fn is_transaction_valid<E>(tx: &Transaction<E>) -> bool {
312
312
pub ( super ) mod internal {
313
313
use super :: * ;
314
314
use std:: {
315
- cmp:: Ordering ,
316
315
collections:: HashMap ,
317
316
hash:: { Hash , Hasher } ,
318
317
ptr,
@@ -431,27 +430,6 @@ pub(super) mod internal {
431
430
}
432
431
}
433
432
434
- #[ derive( Clone , PartialEq , Eq ) ]
435
- struct TimeoutQueueItem {
436
- valid_until : BlockDate ,
437
- id : FragmentId ,
438
- }
439
-
440
- impl Ord for TimeoutQueueItem {
441
- fn cmp ( & self , other : & Self ) -> Ordering {
442
- let res = self . valid_until . cmp ( & other. valid_until ) ;
443
- if res != Ordering :: Equal {
444
- return res;
445
- }
446
- self . id . cmp ( & other. id )
447
- }
448
- }
449
-
450
- impl PartialOrd for TimeoutQueueItem {
451
- fn partial_cmp ( & self , other : & Self ) -> Option < Ordering > {
452
- Some ( self . cmp ( other) )
453
- }
454
- }
455
433
456
434
pub struct Pool {
457
435
entries : IndexedQueue < FragmentId , Fragment > ,
0 commit comments