File tree 2 files changed +0
-7
lines changed
services/connection/api_manager
2 files changed +0
-7
lines changed Original file line number Diff line number Diff line change @@ -27,13 +27,10 @@ class BinaryAPI extends BaseAPI {
27
27
BinaryAPI ({
28
28
String ? key,
29
29
bool enableDebug = false ,
30
- this .onProxyFound,
31
30
}) : super (key: key ?? '${UniqueKey ()}' , enableDebug: enableDebug);
32
31
33
32
static const Duration _disconnectTimeOut = Duration (seconds: 5 );
34
33
static const Duration _websocketConnectTimeOut = Duration (seconds: 10 );
35
- // TODO(Ramin): delete this.
36
- final Function (String proxy)? onProxyFound;
37
34
38
35
/// Represents the active websocket connection.
39
36
///
@@ -85,8 +82,6 @@ class BinaryAPI extends BaseAPI {
85
82
86
83
final HttpClient client = HttpClient ()..findProxy = (Uri uri) => proxy;
87
84
88
- onProxyFound? .call (proxy);
89
-
90
85
// Initialize connection to websocket server.
91
86
_webSocketChannel = IOWebSocketChannel .connect ('$uri ' ,
92
87
pingInterval: _websocketConnectTimeOut, customClient: client);
Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ class ConnectionCubit extends Cubit<ConnectionState> {
21
21
ConnectionCubit (
22
22
ConnectionInformation connectionInformation, {
23
23
BaseAPI ? api,
24
- Function (String proxy)? onProxyFound,
25
24
this .enableDebug = false ,
26
25
this .printResponse = false ,
27
26
}) : super (const ConnectionInitialState ()) {
@@ -30,7 +29,6 @@ class ConnectionCubit extends Cubit<ConnectionState> {
30
29
BinaryAPI (
31
30
key: _key,
32
31
enableDebug: enableDebug,
33
- onProxyFound: onProxyFound,
34
32
),
35
33
);
36
34
You can’t perform that action at this time.
0 commit comments