Skip to content

Commit

Permalink
fix(core): remove unused protobuf messages defines (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
somebodyLi authored Aug 29, 2024
1 parent 6bd941d commit 6deb9fb
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
3 changes: 0 additions & 3 deletions common/protob/messages.proto
Original file line number Diff line number Diff line change
Expand Up @@ -516,9 +516,6 @@ enum MessageType {
MessageType_LnurlAuth = 11600 [(wire_in) = true];
MessageType_LnurlAuthResp = 11601 [(wire_out) = true];

// Uniform Resources [21000:22000]
MessageType_URCryptoHdkey = 21000 [(wire_in) = true];
MessageType_URResponse = 21001 [(wire_out) = true];

// nervos
MessageType_NervosGetAddress = 11701 [(wire_in) = true];
Expand Down
4 changes: 0 additions & 4 deletions core/src/apps/workflow_handlers.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,10 +364,6 @@ def find_message_handler_module(msg_type: int) -> str:
if msg_type == MessageType.AlephiumSignMessage:
return "apps.alephium.sign_message"

# UR
if msg_type == MessageType.URCryptoHdkey:
return "apps.ur_registry.crypto_hd_key"

raise ValueError


Expand Down
2 changes: 0 additions & 2 deletions core/src/trezor/enums/MessageType.py
Original file line number Diff line number Diff line change
Expand Up @@ -355,8 +355,6 @@
NostrSignedSchnorr = 11509
LnurlAuth = 11600
LnurlAuthResp = 11601
URCryptoHdkey = 21000
URResponse = 21001
NervosGetAddress = 11701
NervosAddress = 11702
NervosSignTx = 11703
Expand Down
2 changes: 0 additions & 2 deletions core/src/trezor/enums/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,6 @@ class MessageType(IntEnum):
NostrSignedSchnorr = 11509
LnurlAuth = 11600
LnurlAuthResp = 11601
URCryptoHdkey = 21000
URResponse = 21001
NervosGetAddress = 11701
NervosAddress = 11702
NervosSignTx = 11703
Expand Down
2 changes: 0 additions & 2 deletions python/src/trezorlib/messages.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,8 +381,6 @@ class MessageType(IntEnum):
NostrSignedSchnorr = 11509
LnurlAuth = 11600
LnurlAuthResp = 11601
URCryptoHdkey = 21000
URResponse = 21001
NervosGetAddress = 11701
NervosAddress = 11702
NervosSignTx = 11703
Expand Down

0 comments on commit 6deb9fb

Please sign in to comment.