From 95fb346c0c729d8982ba326a1326c59b9c5bd826 Mon Sep 17 00:00:00 2001 From: Geoffrey Kwan Date: Thu, 26 Oct 2023 10:46:49 -0400 Subject: [PATCH] refactor(Classroom Monitor): Remove unnecessary function --- .../student-progress/student-progress.component.ts | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/src/assets/wise5/classroomMonitor/student-progress/student-progress.component.ts b/src/assets/wise5/classroomMonitor/student-progress/student-progress.component.ts index 66af70103ec..bbcd180f005 100644 --- a/src/assets/wise5/classroomMonitor/student-progress/student-progress.component.ts +++ b/src/assets/wise5/classroomMonitor/student-progress/student-progress.component.ts @@ -73,7 +73,7 @@ export class StudentProgressComponent implements OnInit { private updateTeam(workgroupId: number): void { const location = this.getCurrentNodeForWorkgroupId(workgroupId); - const completion = this.getStudentProjectCompletion(workgroupId); + const completion = this.classroomStatusService.getStudentProjectCompletion(workgroupId); const score = this.getStudentTotalScore(workgroupId); let maxScore = this.classroomStatusService.getMaxScoreForWorkgroupId(workgroupId); maxScore = maxScore ? maxScore : 0; @@ -95,15 +95,6 @@ export class StudentProgressComponent implements OnInit { ); } - /** - * Get project completion data for the given workgroup (only include nodes with student work) - * @param workgroupId the workgroup id - * @return object with completed, total, and percent completed (integer between 0 and 100) - */ - private getStudentProjectCompletion(workgroupId: number): any { - return this.classroomStatusService.getStudentProjectCompletion(workgroupId); - } - private getStudentTotalScore(workgroupId: number): number { return this.dataService.getTotalScoreByWorkgroupId(workgroupId); }