From 9535a91f916979beee15f5781b091b6b5443926c Mon Sep 17 00:00:00 2001 From: Jan Romann Date: Sat, 22 Jun 2024 14:59:15 +0200 Subject: [PATCH] feat!(scripting_api): remove ExposedThing method setEventHandler This method is not specified in the Scripting API specification and should therefore be removed from the interface definition. --- lib/src/core/scripting_api/exposed_thing.dart | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lib/src/core/scripting_api/exposed_thing.dart b/lib/src/core/scripting_api/exposed_thing.dart index 3aff4b92..241e7440 100644 --- a/lib/src/core/scripting_api/exposed_thing.dart +++ b/lib/src/core/scripting_api/exposed_thing.dart @@ -111,11 +111,6 @@ abstract interface class ExposedThing { EventSubscriptionHandler handler, ); - /// Assigns a [handler] function to an event with a given [name]. - /// - /// If the event is emitted, the [handler] function will be called. - void setEventHandler(String name, EventListenerHandler handler); - /// Informs all subscribers of an Event with the given [name] that it has /// occurred. ///