[In Progress] Remove deprecated api (#4973)

* Remove deprecated api

* Revert changes to wasm-build-runner
This commit is contained in:
Stanislav Tkach authored and GitHub committed 2020-02-18 23:25:56 +01:00
1 parent 4e453a99a6
commit ba2362dadd
3 files changed
+1 -39

No files matched your search

@@ -41,14 +41,6 @@ pub trait NetworkSpecialization<B: BlockT>: Send + Sync + 'static {
message: Vec<u8>
);
/// Called when a network-specific event arrives.
#[deprecated(note = "This method is never called; please use `with_dht_event_tx` when building the service")]
fn on_event(&mut self, _event: Event) {}
/// Called on abort.
#[deprecated(note = "This method is never called; aborting corresponds to dropping the object")]
fn on_abort(&mut self) { }
/// Called periodically to maintain peers and handle timeouts.
fn maintain_peers(&mut self, _ctx: &mut dyn Context<B>) { }
@@ -162,17 +154,6 @@ macro_rules! construct_simple_protocol {
$( self.$sub_protocol_name.on_message(_ctx, _who, _message); )*
}
fn on_event(
&mut self,
_event: $crate::specialization::Event
) {
$( self.$sub_protocol_name.on_event(_event); )*
}
fn on_abort(&mut self) {
$( self.$sub_protocol_name.on_abort(); )*
}
fn maintain_peers(&mut self, _ctx: &mut $crate::Context<$block>) {
$( self.$sub_protocol_name.maintain_peers(_ctx); )*
}