Skip to content

Commit ca6ecf6

Browse files
committed
chore: remove dead code
1 parent a62bf05 commit ca6ecf6

1 file changed

Lines changed: 1 addition & 14 deletions

File tree

mobile-app/lib/ui/views/learn/challenge/challenge_view.dart

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,6 @@ class ChallengeView extends StatelessWidget {
306306
..._panelIconButtons(
307307
model,
308308
challenge,
309-
challengesCompleted,
310309
block,
311310
),
312311
Expanded(
@@ -337,18 +336,7 @@ class ChallengeView extends StatelessWidget {
337336
size: 30,
338337
),
339338
onPressed: model.hasTypedInEditor
340-
? () async {
341-
if (model.showPanel &&
342-
model.panelType == PanelType.pass) {
343-
model.learnService.goToNextChallenge(
344-
model.block!.challenges.length,
345-
challengesCompleted,
346-
challenge,
347-
block,
348-
);
349-
}
350-
model.runTests();
351-
}
339+
? model.runTests
352340
: null,
353341
splashColor: Colors.transparent,
354342
highlightColor: Colors.transparent,
@@ -556,7 +544,6 @@ class ChallengeView extends StatelessWidget {
556544
List<Widget> _panelIconButtons(
557545
ChallengeViewModel model,
558546
Challenge challenge,
559-
int challengesCompleted,
560547
Block block,
561548
) {
562549
return [

0 commit comments

Comments
 (0)