Skip to content

Commit

Permalink
Merge pull request #253 from CS2103AUG2016-W11-C3/Remove_history_code
Browse files Browse the repository at this point in the history
Commented
  • Loading branch information
LuMiN0uSaRc authored Nov 7, 2016
2 parents 295e334 + 022f192 commit 3816baa
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/harmony/mastermind/logic/commands/History.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,11 @@ private static void duplicateMemory(Memory memory) {
memory.get(i).getState()));
}
}

//@@author A0143378Y

/*
* Unused code:
* Reason: For future implementations of Memory
//@@author A0143378Y-unused
// Retrieves most recent snapshot in the forward stack and swap it with current memory. Current memory gets pushed into back stack
public static void redo(Memory memory) {
if (forward.isEmpty() || (forward.peek() == null)) {
Expand Down Expand Up @@ -93,5 +96,6 @@ private static ArrayList<GenericMemory> duplicateTemp(Memory memory) {
}
return temp;
}
*/

}

0 comments on commit 3816baa

Please sign in to comment.