Skip to content

Commit b3550bc

Browse files
committed
remove debugging code
1 parent 33f62ef commit b3550bc

File tree

2 files changed

+0
-7
lines changed

2 files changed

+0
-7
lines changed

Diff for: lib/services/connection/api_manager/binary_api.dart

-5
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ class BinaryAPI extends BaseAPI {
2727
BinaryAPI({
2828
String? key,
2929
bool enableDebug = false,
30-
this.onProxyFound,
3130
}) : super(key: key ?? '${UniqueKey()}', enableDebug: enableDebug);
3231

3332
static const Duration _disconnectTimeOut = Duration(seconds: 5);
3433
static const Duration _websocketConnectTimeOut = Duration(seconds: 10);
35-
// TODO(Ramin): delete this.
36-
final Function(String proxy)? onProxyFound;
3734

3835
/// Represents the active websocket connection.
3936
///
@@ -85,8 +82,6 @@ class BinaryAPI extends BaseAPI {
8582

8683
final HttpClient client = HttpClient()..findProxy = (Uri uri) => proxy;
8784

88-
onProxyFound?.call(proxy);
89-
9085
// Initialize connection to websocket server.
9186
_webSocketChannel = IOWebSocketChannel.connect('$uri',
9287
pingInterval: _websocketConnectTimeOut, customClient: client);

Diff for: lib/state/connection/connection_cubit.dart

-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ class ConnectionCubit extends Cubit<ConnectionState> {
2121
ConnectionCubit(
2222
ConnectionInformation connectionInformation, {
2323
BaseAPI? api,
24-
Function(String proxy)? onProxyFound,
2524
this.enableDebug = false,
2625
this.printResponse = false,
2726
}) : super(const ConnectionInitialState()) {
@@ -30,7 +29,6 @@ class ConnectionCubit extends Cubit<ConnectionState> {
3029
BinaryAPI(
3130
key: _key,
3231
enableDebug: enableDebug,
33-
onProxyFound: onProxyFound,
3432
),
3533
);
3634

0 commit comments

Comments
 (0)