Removing unused client code (#1645)

* moving ipc deriving to trait

* refactoring of the client
This commit is contained in:
Nikolay Volf
2016-07-19 09:21:41 +02:00
committed by Gav Wood
parent 3ba3dd3805
commit 459dcbcef1
11 changed files with 276 additions and 226 deletions

View File

@@ -121,9 +121,9 @@ impl IoHandler<ClientIoMessage> for ClientIoHandler {
}
#[cfg_attr(feature="dev", allow(single_match))]
fn message(&self, io: &IoContext<ClientIoMessage>, net_message: &ClientIoMessage) {
fn message(&self, _io: &IoContext<ClientIoMessage>, net_message: &ClientIoMessage) {
match *net_message {
ClientIoMessage::BlockVerified => { self.client.import_verified_blocks(&io.channel()); }
ClientIoMessage::BlockVerified => { self.client.import_verified_blocks(); }
ClientIoMessage::NewTransactions(ref transactions) => { self.client.import_queued_transactions(&transactions); }
_ => {} // ignore other messages
}