diff --git a/src/main/java/seedu/address/model/AddressBook.java b/src/main/java/seedu/address/model/AddressBook.java index e22ccea33cb..f4144fae666 100644 --- a/src/main/java/seedu/address/model/AddressBook.java +++ b/src/main/java/seedu/address/model/AddressBook.java @@ -165,7 +165,6 @@ public boolean hasReminder(Reminder reminder) { */ public void addReminder(Reminder reminder) { reminders.add(reminder); - reminder.setRid(reminders.getCurrentIndex() + 1); } /** diff --git a/src/main/java/seedu/address/model/reminder/Reminder.java b/src/main/java/seedu/address/model/reminder/Reminder.java index 3a0942ffba8..ff96980164f 100644 --- a/src/main/java/seedu/address/model/reminder/Reminder.java +++ b/src/main/java/seedu/address/model/reminder/Reminder.java @@ -8,7 +8,6 @@ public class Reminder { // Identity fields private final ReminderName reminderName; private final ReminderStartDate reminderStartDate; - private int rid; /** * Every field must be present and not null. @@ -27,14 +26,6 @@ public ReminderStartDate getStartDate() { return reminderStartDate; } - public void setRid(int rid) { - this.rid = rid; - } - - public int getRid() { - return rid; - } - /** * Returns true if both Reminders have the same reminderName. * This defines a weaker notion of equality between two Reminders. diff --git a/src/main/java/seedu/address/model/reminder/UniqueReminderList.java b/src/main/java/seedu/address/model/reminder/UniqueReminderList.java index dc12bee5deb..6d1475bcfd0 100644 --- a/src/main/java/seedu/address/model/reminder/UniqueReminderList.java +++ b/src/main/java/seedu/address/model/reminder/UniqueReminderList.java @@ -28,18 +28,6 @@ public class UniqueReminderList implements Iterable { private final ObservableList internalUnmodifiableList = FXCollections.unmodifiableObservableList(internalList); - /** - * Returns the current largest rid - * @return the current largest rid - */ - public int getCurrentIndex() { - if (this.internalList.size() == 0) { - return 0; - } else { - return this.internalList.get(this.internalList.size() - 1).getRid(); - } - } - /** * Returns true if the list contains an equivalent Reminder as the given argument. */