Skip to content

Commit 8ad1d9c

Browse files
committed
platform/config: remove unused RUST_ defines
If needed, it is better to define it in bitbox02-cbindgen.toml, like RUST_APP_ETHEREUM.
1 parent 7d73ee7 commit 8ad1d9c

File tree

3 files changed

+0
-21
lines changed

3 files changed

+0
-21
lines changed

src/platform/platform_config.h

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -55,21 +55,12 @@
5555
#define FACTORYSETUP 0
5656
#endif
5757

58-
#if PRODUCT_BITBOX_MULTI == 1 && !defined(BOOTLOADER)
59-
#define RUST_BITBOX_MULTI
60-
#define RUST_BITBOX02
61-
#endif
62-
6358
#if PRODUCT_BITBOX_BTCONLY == 1
6459
#define PLATFORM_BITBOX02 1
6560
#define PLATFORM_BITBOXBASE 0
6661
#define FACTORYSETUP 0
6762
#endif
6863

69-
#if PRODUCT_BITBOX_BTCONLY == 1 && !defined(BOOTLOADER)
70-
#define RUST_BITBOX_BTCONLY
71-
#endif
72-
7364
#if PRODUCT_BITBOX_BASE == 1
7465
#define PLATFORM_BITBOX02 0
7566
#define PLATFORM_BITBOXBASE 1
@@ -86,18 +77,10 @@
8677
#define FACTORYSETUP 1
8778
#endif
8879

89-
#if PRODUCT_BITBOX02_FACTORYSETUP == 1 && !defined(BOOTLOADER)
90-
#define RUST_BITBOX02_FACTORYSETUP
91-
#endif
92-
9380
#if PRODUCT_BITBOXBASE_FACTORYSETUP == 1
9481
#define PLATFORM_BITBOX02 0
9582
#define PLATFORM_BITBOXBASE 1
9683
#define FACTORYSETUP 1
9784
#endif
9885

99-
#if PRODUCT_BITBOXBASE_FACTORYSETUP == 1 && !defined(BOOTLOADER)
100-
#define RUST_BITBOXBASE_FACTORYSETUP
101-
#endif
102-
10386
#endif

src/rust/bitbox02-cbindgen.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,5 +53,4 @@ exclude = [
5353

5454
[defines]
5555
"feature=platform-bitboxbase" = "RUST_BITBOX_BASE"
56-
"feature=platform-bitbox02" = "RUST_BITBOX02"
5756
"feature=app-ethereum" = "RUST_APP_ETHEREUM"

src/rust/bitbox02-rust-c/src/lib.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,6 @@ mod workflow;
4343
#[cfg(all(feature = "firmware", feature = "platform-bitboxbase"))]
4444
pub mod bitboxbase;
4545

46-
#[cfg(all(feature = "firmware", feature = "platform-bitbox02"))]
47-
pub mod bitbox02;
48-
4946
#[cfg(feature = "app-ethereum")]
5047
pub mod app_ethereum;
5148

0 commit comments

Comments
 (0)