Skip to content

Commit

Permalink
Merge pull request #122 from KamJiaYue/branch-add-chart
Browse files Browse the repository at this point in the history
Update errors
  • Loading branch information
laurenlim2112 authored Nov 2, 2023
2 parents db80eab + 3703b03 commit 3f2a004
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 14 deletions.
10 changes: 0 additions & 10 deletions src/main/java/seedu/address/logic/OrganizeData.java
Original file line number Diff line number Diff line change
Expand Up @@ -133,16 +133,6 @@ public static Map<String, Integer> bySubject(Model model) {
return columnValueMapping;
}

public static Map<String, Integer> byMonth(Model model) {
Map<String, Integer> columnValueMapping = new HashMap<>();

ObservableList<Student> studentList = model.getFilteredPersonList();

studentList.stream().forEach(student -> student.putSubjectsByMonth(columnValueMapping));

return columnValueMapping;
}

/**
* Maps Month with the number of students
* @param model instance of Model subclass, e.g. ModelManager instance
Expand Down
4 changes: 0 additions & 4 deletions src/main/java/seedu/address/model/person/Student.java
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,6 @@ public boolean isSamePerson(Student otherStudent) {
}


public void putSubjectsByMonth(Map<String, Integer> map) {
getSubjects().forEach(subject -> subject.putToMapByMonth(map));
}

/**
* Returns true if both persons have the same identity and data fields.
* This defines a stronger notion of equality between two persons.
Expand Down

0 comments on commit 3f2a004

Please sign in to comment.