remove unused commented out code

pull/1402/head
ggurdin 1 year ago
parent 50c8828dd6
commit 4b2c5bc213
No known key found for this signature in database
GPG Key ID: A01CB41737CBB478

@ -98,21 +98,6 @@ class MessagePracticeActivityCardState extends State<PracticeActivityCard> {
);
}
// 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<PracticeActivityEvent> 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<PracticeActivityModel?> _fetchNewActivity([
ActivityQualityFeedback? activityFeedback,
]) async {
@ -211,23 +196,6 @@ class MessagePracticeActivityCardState extends State<PracticeActivityCard> {
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();
//

Loading…
Cancel
Save