Skip to content

Commit

Permalink
refactor(GradingNodeService, TeacherNodeService): Remove unnecessary …
Browse files Browse the repository at this point in the history
…comments from methods
  • Loading branch information
hirokiterashima committed Dec 17, 2024
1 parent 73f38b0 commit dcccf72
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 17 deletions.
13 changes: 0 additions & 13 deletions src/assets/wise5/services/gradingNodeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,6 @@ import { TeacherNodeService } from './teacherNodeService';

@Injectable()
export class GradingNodeService extends TeacherNodeService {
/**
* Get the next node id in the project sequence that captures student work
* @param currentId (optional)
* @returns next node id
*/
getNextNodeId(currentId = null): Promise<string> {
return super.getNextNodeId(currentId).then((nextNodeId: string) => {
if (!nextNodeId) return null;
Expand All @@ -17,18 +12,10 @@ export class GradingNodeService extends TeacherNodeService {
});
}

/**
* Go to the previous node that captures work
*/
goToPrevNode(): void {
this.setCurrentNode(this.getPrevNodeId());
}

/**
* Get the previous node id in the project sequence that captures student work
* @param currentId (optional)
* @returns next node id
*/
getPrevNodeId(currentId = null) {
const prevNodeId = super.getPrevNodeId(currentId);
if (!prevNodeId) return null;
Expand Down
4 changes: 0 additions & 4 deletions src/assets/wise5/services/teacherNodeService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ export class TeacherNodeService extends NodeService {
this.starterStateResponseSource.next(args);
}

/**
* Get the previous node in the project sequence
* @param currentId (optional)
*/
getPrevNodeId(currentId?: string): string {
let prevNodeId = null;
const currentNodeId = currentId ?? this.dataService.getCurrentNodeId();
Expand Down

0 comments on commit dcccf72

Please sign in to comment.