Skip to content

Commit

Permalink
refactor: remove obsolete _FlatStreamExtension
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jan 18, 2024
1 parent 7d56965 commit a635b1f
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions lib/src/core/implementation/thing_discovery.dart
Original file line number Diff line number Diff line change
Expand Up @@ -358,16 +358,6 @@ extension _UriExtension on Uri {
}
}

/// Extension to simplify the handling of nested [Stream]s.
extension _FlatStreamExtension<T> on Stream<Stream<T>> {
/// Flattens a nested [Stream] of [Stream]s into a single [Stream].
Stream<T> flatten() async* {
await for (final stream in this) {
yield* stream;
}
}
}

/// Implemention of the [scripting_api.ThingDiscoveryProcess] interface.
class ThingDiscoveryProcess extends Stream<ThingDescription>
implements scripting_api.ThingDiscoveryProcess {
Expand Down

0 comments on commit a635b1f

Please sign in to comment.