@@ -12,7 +12,7 @@ use crate::{
1212 utils:: async_msg:: MessageBox ,
1313} ;
1414use 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 } ;
1616use futures:: { channel:: mpsc:: SendError , sink:: SinkExt } ;
1717use jormungandr_lib:: {
1818 interfaces:: {
@@ -312,7 +312,6 @@ fn is_transaction_valid<E>(tx: &Transaction<E>) -> bool {
312312pub ( super ) mod internal {
313313 use super :: * ;
314314 use std:: {
315- cmp:: Ordering ,
316315 collections:: HashMap ,
317316 hash:: { Hash , Hasher } ,
318317 ptr,
@@ -431,27 +430,6 @@ pub(super) mod internal {
431430 }
432431 }
433432
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- }
455433
456434 pub struct Pool {
457435 entries : IndexedQueue < FragmentId , Fragment > ,
0 commit comments