@@ -29,7 +29,6 @@ use crate::MessageKind;
29
29
use crate :: MgsError ;
30
30
use crate :: MgsRequest ;
31
31
use crate :: MgsResponse ;
32
- use crate :: MonorailError ;
33
32
use crate :: PowerState ;
34
33
use crate :: PowerStateTransition ;
35
34
use crate :: RotBootInfo ;
@@ -47,8 +46,6 @@ use crate::SpUpdatePrepare;
47
46
use crate :: StartupOptions ;
48
47
use crate :: SwitchDuration ;
49
48
use crate :: TlvPage ;
50
- use crate :: UnlockChallenge ;
51
- use crate :: UnlockResponse ;
52
49
use crate :: UpdateChunk ;
53
50
use crate :: UpdateId ;
54
51
use crate :: UpdateStatus ;
@@ -420,15 +417,6 @@ pub trait SpHandler {
420
417
fn start_host_flash_hash ( & mut self , slot : u16 ) -> Result < ( ) , SpError > ;
421
418
422
419
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 > ;
432
420
}
433
421
434
422
/// Handle a single incoming message.
@@ -1469,16 +1457,6 @@ mod tests {
1469
1457
) -> Result < [ u8 ; 32 ] , SpError > {
1470
1458
unimplemented ! ( )
1471
1459
}
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
- }
1482
1460
}
1483
1461
1484
1462
#[ cfg( feature = "std" ) ]
0 commit comments