fix(light-rpc/parity) : Remove unused client (#9802)

This commit is contained in:
Niklas Adolfsson 2018-10-24 12:55:24 +02:00 committed by Andrew Jones
parent fe84718b55
commit f4c421f77a
2 changed files with 0 additions and 6 deletions

View File

@ -542,7 +542,6 @@ impl<C: LightChainClient + 'static> LightDependencies<C> {
false => None,
};
handler.extend_with(light::ParityClient::new(
self.client.clone(),
Arc::new(dispatcher.clone()),
self.secret_store.clone(),
self.logger.clone(),

View File

@ -27,8 +27,6 @@ use sync::LightSyncProvider;
use ethcore::account_provider::AccountProvider;
use ethcore_logger::RotatingLogger;
use light::client::LightChainClient;
use jsonrpc_core::{Result, BoxFuture};
use jsonrpc_core::futures::Future;
use jsonrpc_macros::Trailing;
@ -49,7 +47,6 @@ use Host;
/// Parity implementation for light client.
pub struct ParityClient {
client: Arc<LightChainClient>,
light_dispatch: Arc<LightDispatcher>,
accounts: Arc<AccountProvider>,
logger: Arc<RotatingLogger>,
@ -62,7 +59,6 @@ pub struct ParityClient {
impl ParityClient {
/// Creates new `ParityClient`.
pub fn new(
client: Arc<LightChainClient>,
light_dispatch: Arc<LightDispatcher>,
accounts: Arc<AccountProvider>,
logger: Arc<RotatingLogger>,
@ -78,7 +74,6 @@ impl ParityClient {
settings,
signer,
ws_address,
client,
gas_price_percentile,
}
}