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

remove unused fields in informant #3963

Merged
merged 1 commit into from
Dec 23, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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