Remove unused code
This commit is contained in:
@@ -61,8 +61,6 @@ int eth_plugin_perform_init(uint8_t *contractAddress, ethPluginInitContract_t *i
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef TARGET_BLUE
|
|
||||||
|
|
||||||
// Do not handle a plugin if running in swap mode
|
// Do not handle a plugin if running in swap mode
|
||||||
if (called_from_swap && (contractAddress != NULL)) {
|
if (called_from_swap && (contractAddress != NULL)) {
|
||||||
PRINTF("eth_plug_init aborted in swap mode\n");
|
PRINTF("eth_plug_init aborted in swap mode\n");
|
||||||
@@ -90,14 +88,6 @@ int eth_plugin_perform_init(uint8_t *contractAddress, ethPluginInitContract_t *i
|
|||||||
PRINTF("eth_plugin_init ok %s\n", dataContext.tokenContext.pluginName);
|
PRINTF("eth_plugin_init ok %s\n", dataContext.tokenContext.pluginName);
|
||||||
dataContext.tokenContext.pluginAvailable = 1;
|
dataContext.tokenContext.pluginAvailable = 1;
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
#else
|
|
||||||
|
|
||||||
// Disable plugins on Ledger Blue for the time being
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
#endif
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int eth_plugin_call(uint8_t *contractAddress, int method, void *parameter) {
|
int eth_plugin_call(uint8_t *contractAddress, int method, void *parameter) {
|
||||||
|
|||||||
@@ -47,8 +47,6 @@ void handle_swap_sign_transaction(create_transaction_parameters_t* sign_transact
|
|||||||
storage.initialized = 0x01;
|
storage.initialized = 0x01;
|
||||||
nvm_write((void*)&N_storage, (void*)&storage, sizeof(internalStorage_t));
|
nvm_write((void*)&N_storage, (void*)&storage, sizeof(internalStorage_t));
|
||||||
}
|
}
|
||||||
dataAllowed = N_storage.dataAllowed;
|
|
||||||
contractDetails = N_storage.contractDetails;
|
|
||||||
|
|
||||||
UX_INIT();
|
UX_INIT();
|
||||||
USB_power(0);
|
USB_power(0);
|
||||||
|
|||||||
@@ -48,8 +48,6 @@ dataContext_t dataContext;
|
|||||||
strings_t strings;
|
strings_t strings;
|
||||||
cx_sha3_t global_sha3;
|
cx_sha3_t global_sha3;
|
||||||
|
|
||||||
uint8_t dataAllowed;
|
|
||||||
uint8_t contractDetails;
|
|
||||||
uint8_t appState;
|
uint8_t appState;
|
||||||
bool dataPresent;
|
bool dataPresent;
|
||||||
bool called_from_swap;
|
bool called_from_swap;
|
||||||
@@ -627,8 +625,6 @@ void coin_main_with_config(chain_config_t *config) {
|
|||||||
storage.initialized = 0x01;
|
storage.initialized = 0x01;
|
||||||
nvm_write((void*)&N_storage, (void*)&storage, sizeof(internalStorage_t));
|
nvm_write((void*)&N_storage, (void*)&storage, sizeof(internalStorage_t));
|
||||||
}
|
}
|
||||||
dataAllowed = N_storage.dataAllowed;
|
|
||||||
contractDetails = N_storage.contractDetails;
|
|
||||||
|
|
||||||
USB_power(0);
|
USB_power(0);
|
||||||
USB_power(1);
|
USB_power(1);
|
||||||
|
|||||||
@@ -163,8 +163,6 @@ extern cx_sha3_t global_sha3;
|
|||||||
extern const internalStorage_t N_storage_real;
|
extern const internalStorage_t N_storage_real;
|
||||||
|
|
||||||
extern bool called_from_swap;
|
extern bool called_from_swap;
|
||||||
extern uint8_t dataAllowed;
|
|
||||||
extern uint8_t contractDetails;
|
|
||||||
extern bool dataPresent;
|
extern bool dataPresent;
|
||||||
extern uint8_t appState;
|
extern uint8_t appState;
|
||||||
#ifdef HAVE_STARKWARE
|
#ifdef HAVE_STARKWARE
|
||||||
|
|||||||
Reference in New Issue
Block a user