Skip to content

Commit

Permalink
chore!: remove obsolete break statements from switches
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed May 13, 2023
1 parent b6f95de commit 98cd71d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions lib/src/core/consumed_thing.dart
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,8 @@ class ConsumedThing implements scripting_api.ConsumedThing {
switch (type) {
case SubscriptionType.property:
_observedProperties.remove(key);
break;
case SubscriptionType.event:
_subscribedEvents.remove(key);
break;
}
}

Expand Down
5 changes: 0 additions & 5 deletions lib/src/core/thing_discovery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,16 +71,12 @@ class ThingDiscovery extends Stream<ThingDescription>
switch (_method) {
case scripting_api.DiscoveryMethod.direct:
yield* _discoverDirectly(_url);
break;
case scripting_api.DiscoveryMethod.coreLinkFormat:
yield* _discoverWithCoreLinkFormat(_url);
break;
case scripting_api.DiscoveryMethod.coreResourceDirectory:
yield* _discoverfromCoreResourceDirectory(_url);
break;
case scripting_api.DiscoveryMethod.dnsServiceDiscovery:
yield* _discoverUsingDnsServiceDiscovery(_url);
break;
default:
throw UnimplementedError();
}
Expand Down Expand Up @@ -313,7 +309,6 @@ class ThingDiscovery extends Stream<ThingDescription>
switch (type) {
case 'Thing':
yield* _discoverDirectly(uri);
break;
case 'Directory':
// TODO(JKRhb): Implement directory discovery.
break;
Expand Down

0 comments on commit 98cd71d

Please sign in to comment.