From b2e37f0cd5a16ff0f41bf484e6deb55df75a8547 Mon Sep 17 00:00:00 2001 From: Yaroslav Bolyukin Date: Fri, 03 Jun 2022 09:34:02 +0000 Subject: [PATCH] style: remove unused --- --- a/pallets/common/src/erc.rs +++ b/pallets/common/src/erc.rs @@ -21,7 +21,6 @@ }; pub use pallet_evm::{PrecompileOutput, PrecompileResult, PrecompileHandle, account::CrossAccountId}; use pallet_evm_coder_substrate::dispatch_to_evm; -use sp_core::{H160, U256}; use sp_std::vec::Vec; use up_data_structs::{Property, SponsoringRateLimit}; use alloc::format; --- a/pallets/evm-migration/src/lib.rs +++ b/pallets/evm-migration/src/lib.rs @@ -108,7 +108,7 @@ false } - fn call(handle: &mut impl PrecompileHandle) -> Option { + fn call(_handle: &mut impl PrecompileHandle) -> Option { None } --- a/pallets/fungible/src/erc.rs +++ b/pallets/fungible/src/erc.rs @@ -19,7 +19,6 @@ use evm_coder::{ToLog, execution::*, generate_stubgen, solidity_interface, types::*, weight}; use up_data_structs::CollectionMode; use pallet_common::erc::{CommonEvmHandler, PrecompileResult}; -use sp_core::{H160, U256}; use sp_std::vec::Vec; use pallet_evm::{account::CrossAccountId, PrecompileHandle}; use pallet_evm_coder_substrate::{call, dispatch_to_evm}; --- a/pallets/nonfungible/src/erc.rs +++ b/pallets/nonfungible/src/erc.rs @@ -26,7 +26,6 @@ CollectionPropertiesVec, }; use pallet_evm_coder_substrate::dispatch_to_evm; -use sp_core::{H160, U256}; use sp_std::vec::Vec; use pallet_common::{ erc::{CommonEvmHandler, PrecompileResult, CollectionCall, token_uri_key}, --- a/pallets/refungible/src/erc.rs +++ b/pallets/refungible/src/erc.rs @@ -25,7 +25,7 @@ fn call( self, - handle: &mut impl PrecompileHandle, + _handle: &mut impl PrecompileHandle, ) -> Option { // TODO: Implement RFT variant of ERC721 None @@ -39,7 +39,7 @@ fn call( self, - handle: &mut impl PrecompileHandle, + _handle: &mut impl PrecompileHandle, ) -> Option { // TODO: Implement RFT variant of ERC20 None --- a/runtime/common/src/dispatch.rs +++ b/runtime/common/src/dispatch.rs @@ -1,6 +1,6 @@ use frame_support::{dispatch::DispatchResult, ensure}; use pallet_evm::{PrecompileHandle, PrecompileResult}; -use sp_core::{H160, U256}; +use sp_core::H160; use sp_std::{borrow::ToOwned, vec::Vec}; use pallet_common::{ CollectionById, CollectionHandle, CommonCollectionOperations, erc::CommonEvmHandler, -- gitstuff