From 4b2c5bc2134700087f896aa53606059a6126b1ae Mon Sep 17 00:00:00 2001 From: ggurdin Date: Wed, 9 Oct 2024 11:51:51 -0400 Subject: [PATCH] remove unused commented out code --- .../practice_activity_card.dart | 32 ------------------- 1 file changed, 32 deletions(-) diff --git a/lib/pangea/widgets/practice_activity/practice_activity_card.dart b/lib/pangea/widgets/practice_activity/practice_activity_card.dart index 34a077663..9e0ee3b01 100644 --- a/lib/pangea/widgets/practice_activity/practice_activity_card.dart +++ b/lib/pangea/widgets/practice_activity/practice_activity_card.dart @@ -98,21 +98,6 @@ class MessagePracticeActivityCardState extends State { ); } - // if the user did the activity before but awhile ago and we don't have any - // more target tokens, maybe we should give them the same activity again - // PracticeActivityEvent? _fetchExistingIncompleteActivity() { - // if (practiceActivities.isEmpty) { - // return null; - // } - - // final List incompleteActivities = - // practiceActivities.where((element) => !element.isComplete).toList(); - - // // TODO - maybe check the user's xp for the tgtConstructs and decide if its relevant for them - // // however, maybe we'd like to go ahead and give them the activity to get some data on our xp? - // return incompleteActivities.firstOrNull; - // } - Future _fetchNewActivity([ ActivityQualityFeedback? activityFeedback, ]) async { @@ -211,23 +196,6 @@ class MessagePracticeActivityCardState extends State { widget.pangeaMessageEvent, ); - // save the record without awaiting to avoid blocking the UI - // send a copy of the activity record to make sure its not overwritten by - // the new activity - // MatrixState.pangeaController.activityRecordController - // .send(currentCompletionRecord!, currentActivity!) - // .catchError( - // (e, s) => ErrorHandler.logError( - // e: e, - // s: s, - // m: 'Failed to save record', - // data: { - // 'record': currentCompletionRecord?.toJson(), - // 'activity': currentActivity?.practiceActivity.toJson(), - // }, - // ), - // ); - widget.overlayController.onActivityFinish(); //