File tree Expand file tree Collapse file tree 2 files changed +0
-7
lines changed
services/connection/api_manager Expand file tree Collapse file tree 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 {
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);
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments