Skip to content

Commit 9ddcf1e

Browse files
committed
Remove unlock method from SpHandler trait
1 parent 4a11780 commit 9ddcf1e

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

gateway-messages/src/sp_impl.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ use crate::MessageKind;
2929
use crate::MgsError;
3030
use crate::MgsRequest;
3131
use crate::MgsResponse;
32-
use crate::MonorailError;
3332
use crate::PowerState;
3433
use crate::PowerStateTransition;
3534
use crate::RotBootInfo;
@@ -47,8 +46,6 @@ use crate::SpUpdatePrepare;
4746
use crate::StartupOptions;
4847
use crate::SwitchDuration;
4948
use crate::TlvPage;
50-
use crate::UnlockChallenge;
51-
use crate::UnlockResponse;
5249
use crate::UpdateChunk;
5350
use crate::UpdateId;
5451
use 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

Comments
 (0)