From 07b4f6e39923b82631edb0a158f36f6de1e81b9b Mon Sep 17 00:00:00 2001 From: Tomas Susanka Date: Thu, 3 Oct 2019 09:57:35 +0000 Subject: [PATCH] core/recovery: remove unused get/set_slip39_threshold --- core/src/apps/common/storage/recovery.py | 10 ---------- core/src/apps/management/recovery_device/recover.py | 1 - 2 files changed, 11 deletions(-) diff --git a/core/src/apps/common/storage/recovery.py b/core/src/apps/common/storage/recovery.py index 6c7ae212de..c2b850cbbb 100644 --- a/core/src/apps/common/storage/recovery.py +++ b/core/src/apps/common/storage/recovery.py @@ -62,16 +62,6 @@ def get_slip39_identifier() -> Optional[int]: return common.get_uint16(_NAMESPACE, _SLIP39_IDENTIFIER) -def set_slip39_threshold(threshold: int) -> None: - _require_progress() - common.set_uint8(_NAMESPACE, _SLIP39_THRESHOLD, threshold) - - -def get_slip39_threshold() -> Optional[int]: - _require_progress() - return common.get_uint8(_NAMESPACE, _SLIP39_THRESHOLD) - - def set_slip39_iteration_exponent(exponent: int) -> None: _require_progress() common.set_uint8(_NAMESPACE, _SLIP39_ITERATION_EXPONENT, exponent) diff --git a/core/src/apps/management/recovery_device/recover.py b/core/src/apps/management/recovery_device/recover.py index f558c97f02..ac3c67e3fa 100644 --- a/core/src/apps/management/recovery_device/recover.py +++ b/core/src/apps/management/recovery_device/recover.py @@ -37,7 +37,6 @@ def process_slip39(words: str) -> Tuple[Optional[bytes], slip39.Share]: storage.recovery.set_slip39_group_count(share.group_count) storage.recovery.set_slip39_iteration_exponent(share.iteration_exponent) storage.recovery.set_slip39_identifier(share.identifier) - storage.recovery.set_slip39_threshold(share.threshold) storage.recovery.set_slip39_remaining_shares( share.threshold - 1, share.group_index )