diff --git a/linera-sdk/src/contract/runtime.rs b/linera-sdk/src/contract/runtime.rs index 41da4ec3fc92..fa48e8333d12 100644 --- a/linera-sdk/src/contract/runtime.rs +++ b/linera-sdk/src/contract/runtime.rs @@ -296,26 +296,6 @@ where bcs::from_bytes(&event).expect("Failed to deserialize event") } - /// Subscribes this application to an event stream. - pub fn subscribe_to_events( - &mut self, - chain_id: ChainId, - application_id: ApplicationId, - name: StreamName, - ) { - contract_wit::subscribe_to_events(chain_id.into(), application_id.into(), &name.into()) - } - - /// Unsubscribes this application from an event stream. - pub fn unsubscribe_from_events( - &mut self, - chain_id: ChainId, - application_id: ApplicationId, - name: StreamName, - ) { - contract_wit::unsubscribe_from_events(chain_id.into(), application_id.into(), &name.into()) - } - /// Queries an application service as an oracle and returns the response. /// /// Should only be used with queries where it is very likely that all validators will compute diff --git a/linera-sdk/src/contract/test_runtime.rs b/linera-sdk/src/contract/test_runtime.rs index c5ed9857de57..d54f42bf097e 100644 --- a/linera-sdk/src/contract/test_runtime.rs +++ b/linera-sdk/src/contract/test_runtime.rs @@ -840,26 +840,6 @@ where bcs::from_bytes(value).expect("Failed to deserialize event value") } - /// Subscribes this application to an event stream. - pub fn subscribe_to_events( - &mut self, - _chain_id: ChainId, - _application_id: ApplicationId, - _name: StreamName, - ) { - // This is a no-op in the mock runtime. - } - - /// Unsubscribes this application from an event stream. - pub fn unsubscribe_from_events( - &mut self, - _chain_id: ChainId, - _application_id: ApplicationId, - _name: StreamName, - ) { - // This is a no-op in the mock runtime. - } - /// Adds an expected `query_service` call`, and the response it should return in the test. pub fn add_expected_service_query( &mut self,