@@ -72,7 +72,7 @@ class ConsumedThing implements scripting_api.ConsumedThing {
7272 /// [scheme] .
7373 bool hasClientFor (String scheme) => servient.hasClientFor (scheme);
7474
75- _ClientAndForm _getClientFor (
75+ ({ ProtocolClient client, Form form}) _getClientFor (
7676 List <Form > forms,
7777 OperationType operationType,
7878 _AffordanceType affordanceType,
@@ -117,7 +117,7 @@ class ConsumedThing implements scripting_api.ConsumedThing {
117117 final form =
118118 foundForm.resolveUriVariables (options? .uriVariables) ?? foundForm;
119119
120- return _ClientAndForm (client, form);
120+ return (client: client, form : form);
121121 }
122122
123123 @override
@@ -398,10 +398,8 @@ class ConsumedThing implements scripting_api.ConsumedThing {
398398 switch (type) {
399399 case SubscriptionType .property:
400400 _observedProperties.remove (key);
401- break ;
402401 case SubscriptionType .event:
403402 _subscribedEvents.remove (key);
404- break ;
405403 }
406404 }
407405
@@ -425,12 +423,3 @@ class ConsumedThing implements scripting_api.ConsumedThing {
425423 _subscribedEvents.clear ();
426424 }
427425}
428-
429- /// Private class providing a tuple of a [ProtocolClient] and a [Form] .
430- class _ClientAndForm {
431- _ClientAndForm (this .client, this .form);
432-
433- // TODO(JKRhb): Check if this class is actually needed
434- final ProtocolClient client;
435- final Form form;
436- }
0 commit comments