Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

Commit

Permalink
remove unused fields in informant
Browse files Browse the repository at this point in the history
  • Loading branch information
rphmeier committed Dec 19, 2016
1 parent e0f6f8f commit 9e427c2
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions parity/informant.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,6 @@ use number_prefix::{binary_prefix, Standalone, Prefixed};
use ethcore_rpc::is_major_importing;

pub struct Informant {
chain_info: RwLock<Option<BlockChainInfo>>,
cache_info: RwLock<Option<BlockChainCacheSize>>,
report: RwLock<Option<ClientReport>>,
last_tick: RwLock<Instant>,
with_color: bool,
Expand Down Expand Up @@ -73,8 +71,6 @@ impl Informant {
/// Make a new instance potentially `with_color` output.
pub fn new(client: Arc<Client>, sync: Option<Arc<SyncProvider>>, net: Option<Arc<ManageNetwork>>, snapshot: Option<Arc<SnapshotService>>, 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,
Expand Down Expand Up @@ -177,8 +173,6 @@ impl Informant {
)
);

*self.chain_info.write() = Some(chain_info);
*self.cache_info.write() = Some(cache_info);
*write_report = Some(report);
}
}
Expand Down

0 comments on commit 9e427c2

Please sign in to comment.