From 612f14188f408a011806ced9a34b864aec095cc3 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Fri, 23 Dec 2016 18:45:51 +0100 Subject: [PATCH] remove unused fields in informant (#3963) --- parity/informant.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/parity/informant.rs b/parity/informant.rs index 462252518..0ff13e2dc 100644 --- a/parity/informant.rs +++ b/parity/informant.rs @@ -34,8 +34,6 @@ use number_prefix::{binary_prefix, Standalone, Prefixed}; use ethcore_rpc::is_major_importing; pub struct Informant { - chain_info: RwLock>, - cache_info: RwLock>, report: RwLock>, last_tick: RwLock, with_color: bool, @@ -73,8 +71,6 @@ impl Informant { /// Make a new instance potentially `with_color` output. pub fn new(client: Arc, sync: Option>, net: Option>, snapshot: Option>, with_color: bool) -> Self { Informant { - chain_info: RwLock::new(None), - cache_info: RwLock::new(None), report: RwLock::new(None), last_tick: RwLock::new(Instant::now()), with_color: with_color, @@ -177,8 +173,6 @@ impl Informant { ) ); - *self.chain_info.write() = Some(chain_info); - *self.cache_info.write() = Some(cache_info); *write_report = Some(report); } }