mirror of
https://github.com/trezor/trezor-firmware.git
synced 2024-11-14 03:30:02 +00:00
refactor(core): remove unnecessary channel state
This commit is contained in:
parent
30da02b0f2
commit
739c4180da
@ -8,15 +8,14 @@ else:
|
||||
|
||||
class ChannelState(IntEnum):
|
||||
UNALLOCATED = 0
|
||||
UNAUTHENTICATED = 1
|
||||
TH1 = 2
|
||||
TH2 = 3
|
||||
TP1 = 4
|
||||
TP2 = 5
|
||||
TP3 = 6
|
||||
TP4 = 7
|
||||
TP5 = 8
|
||||
ENCRYPTED_TRANSPORT = 9
|
||||
TH1 = 1
|
||||
TH2 = 2
|
||||
TP1 = 3
|
||||
TP2 = 4
|
||||
TP3 = 5
|
||||
TP4 = 6
|
||||
TP5 = 7
|
||||
ENCRYPTED_TRANSPORT = 8
|
||||
|
||||
|
||||
class SessionState(IntEnum):
|
||||
|
@ -596,8 +596,6 @@ def _state_to_str(state: int) -> str:
|
||||
return "state: tp5"
|
||||
elif state == ChannelState.UNALLOCATED:
|
||||
return "state: unallocated"
|
||||
elif state == ChannelState.UNAUTHENTICATED:
|
||||
return "state: unauthenticated"
|
||||
else:
|
||||
return "state: <not implemented>"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user