@@ -29,7 +29,6 @@ use crate::MessageKind;
2929use crate :: MgsError ;
3030use crate :: MgsRequest ;
3131use crate :: MgsResponse ;
32- use crate :: MonorailError ;
3332use crate :: PowerState ;
3433use crate :: PowerStateTransition ;
3534use crate :: RotBootInfo ;
@@ -47,8 +46,6 @@ use crate::SpUpdatePrepare;
4746use crate :: StartupOptions ;
4847use crate :: SwitchDuration ;
4948use crate :: TlvPage ;
50- use crate :: UnlockChallenge ;
51- use crate :: UnlockResponse ;
5249use crate :: UpdateChunk ;
5350use crate :: UpdateId ;
5451use crate :: UpdateStatus ;
@@ -420,15 +417,6 @@ pub trait SpHandler {
420417 fn start_host_flash_hash ( & mut self , slot : u16 ) -> Result < ( ) , SpError > ;
421418
422419 fn get_host_flash_hash ( & mut self , slot : u16 ) -> Result < [ u8 ; 32 ] , SpError > ;
423-
424- /// Unlocks the tech port if the challenge and response are compatible
425- fn unlock (
426- & mut self ,
427- vid : Self :: VLanId ,
428- challenge : UnlockChallenge ,
429- response : UnlockResponse ,
430- time_sec : u32 ,
431- ) -> Result < ( ) , MonorailError > ;
432420}
433421
434422/// Handle a single incoming message.
@@ -1469,16 +1457,6 @@ mod tests {
14691457 ) -> Result < [ u8 ; 32 ] , SpError > {
14701458 unimplemented ! ( )
14711459 }
1472-
1473- fn unlock (
1474- & mut self ,
1475- _vid : Self :: VLanId ,
1476- _challenge : UnlockChallenge ,
1477- _response : UnlockResponse ,
1478- _time_sec : u32 ,
1479- ) -> Result < ( ) , MonorailError > {
1480- unimplemented ! ( )
1481- }
14821460 }
14831461
14841462 #[ cfg( feature = "std" ) ]
0 commit comments