Skip to content

Commit 58a1841

Browse files
committed
chore(ProtocolClient): remove start method
1 parent b719ccf commit 58a1841

File tree

6 files changed

+0
-25
lines changed

6 files changed

+0
-25
lines changed

lib/src/binding_coap/coap_client.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -438,11 +438,6 @@ final class CoapClient implements ProtocolClient {
438438
return CoapSubscription(coapClient, null, complete);
439439
}
440440

441-
@override
442-
Future<void> start() async {
443-
// Do nothing
444-
}
445-
446441
@override
447442
Future<void> stop() async {}
448443

lib/src/binding_http/http_client.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -263,11 +263,6 @@ final class HttpClient implements ProtocolClient {
263263
return _contentFromResponse(form, response);
264264
}
265265

266-
@override
267-
Future<void> start() async {
268-
// Do nothing
269-
}
270-
271266
@override
272267
Future<void> stop() async {
273268
_client.close();

lib/src/binding_mqtt/mqtt_client.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -166,11 +166,6 @@ final class MqttClient implements ProtocolClient {
166166
..disconnect();
167167
}
168168

169-
@override
170-
Future<void> start() async {
171-
// Do nothing
172-
}
173-
174169
@override
175170
Future<void> stop() async {
176171
// Do nothing

lib/src/core/implementation/protocol_interfaces/protocol_client.dart

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@ import "../content.dart";
1010

1111
/// Base class for a Protocol Client.
1212
abstract interface class ProtocolClient {
13-
/// Starts this [ProtocolClient].
14-
Future<void> start();
15-
1613
/// Stops this [ProtocolClient].
1714
Future<void> stop();
1815

test/binding_coap/binding_coap_test.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,6 @@ void main() {
5252

5353
final coapClient = await defaultClientFactory.createClient();
5454

55-
await coapClient.start();
56-
5755
await coapClient.stop();
5856

5957
expect(defaultClientFactory.destroy(), true);

test/core/discovery_test.dart

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,11 +203,6 @@ class _MockedProtocolClient implements ProtocolClient {
203203
throw StateError("Encountered invalid URL.");
204204
}
205205

206-
@override
207-
Future<void> start() async {
208-
// Do nothing
209-
}
210-
211206
@override
212207
Future<void> stop() async {
213208
// Do nothing

0 commit comments

Comments
 (0)