Skip to content

Commit

Permalink
chore(ProtocolClient): remove start method
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Apr 28, 2024
1 parent 97e0026 commit 8f97d77
Show file tree
Hide file tree
Showing 6 changed files with 0 additions and 25 deletions.
5 changes: 0 additions & 5 deletions lib/src/binding_coap/coap_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -438,11 +438,6 @@ final class CoapClient implements ProtocolClient {
return CoapSubscription(coapClient, null, complete);
}

@override
Future<void> start() async {
// Do nothing
}

@override
Future<void> stop() async {}

Expand Down
5 changes: 0 additions & 5 deletions lib/src/binding_http/http_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -263,11 +263,6 @@ final class HttpClient implements ProtocolClient {
return _contentFromResponse(form, response);
}

@override
Future<void> start() async {
// Do nothing
}

@override
Future<void> stop() async {
_client.close();
Expand Down
5 changes: 0 additions & 5 deletions lib/src/binding_mqtt/mqtt_client.dart
Original file line number Diff line number Diff line change
Expand Up @@ -166,11 +166,6 @@ final class MqttClient implements ProtocolClient {
..disconnect();
}

@override
Future<void> start() async {
// Do nothing
}

@override
Future<void> stop() async {
// Do nothing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ import "../content.dart";

/// Base class for a Protocol Client.
abstract interface class ProtocolClient {
/// Starts this [ProtocolClient].
Future<void> start();

/// Stops this [ProtocolClient].
Future<void> stop();

Expand Down
2 changes: 0 additions & 2 deletions test/binding_coap/binding_coap_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ void main() {

final coapClient = await defaultClientFactory.createClient();

await coapClient.start();

await coapClient.stop();

expect(defaultClientFactory.destroy(), true);
Expand Down
5 changes: 0 additions & 5 deletions test/core/discovery_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -203,11 +203,6 @@ class _MockedProtocolClient implements ProtocolClient {
throw StateError("Encountered invalid URL.");
}

@override
Future<void> start() async {
// Do nothing
}

@override
Future<void> stop() async {
// Do nothing
Expand Down

0 comments on commit 8f97d77

Please sign in to comment.