File tree Expand file tree Collapse file tree 1 file changed +0
-9
lines changed
lib/src/model/offline_computer Expand file tree Collapse file tree 1 file changed +0
-9
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,6 @@ import 'package:fast_immutable_collections/fast_immutable_collections.dart';
88import 'package:flutter/foundation.dart' ;
99import 'package:flutter_riverpod/flutter_riverpod.dart' ;
1010import 'package:freezed_annotation/freezed_annotation.dart' ;
11- import 'package:lichess_mobile/src/model/analysis/analysis_controller.dart' ;
1211import 'package:lichess_mobile/src/model/common/chess.dart' ;
1312import 'package:lichess_mobile/src/model/common/chess960.dart' ;
1413import 'package:lichess_mobile/src/model/common/eval.dart' ;
@@ -93,9 +92,6 @@ class OfflineComputerGameController extends Notifier<OfflineComputerGameState> {
9392
9493 @override
9594 OfflineComputerGameState build () {
96- socketClient = ref.watch (socketPoolProvider).open (AnalysisController .socketUri);
97- _socketSubscription? .cancel ();
98- _socketSubscription = socketClient.stream.listen (_handleSocketEvent);
9995 final evaluationService = ref.watch (evaluationServiceProvider);
10096 ref.onDispose (() {
10197 evaluationService.quit ();
@@ -460,11 +456,6 @@ class OfflineComputerGameController extends Notifier<OfflineComputerGameState> {
460456 return completer.future;
461457 }
462458
463- void _handleSocketEvent (SocketEvent event) {
464- // not handling any events for now, but we keep the connection open
465- _logger.finer ('Received socket event: ${event .topic }' );
466- }
467-
468459 Future <CloudEval ?> _getCloudEval (EvalWork work, {required int numEvalLines}) async {
469460 CloudEval ? eval;
470461 try {
You can’t perform that action at this time.
0 commit comments