Skip to content

Commit

Permalink
Revert "Added a lesson restart call to allow lesson specific restart …
Browse files Browse the repository at this point in the history
…functionality"

This reverts commit 5365f63.
  • Loading branch information
mayhew64 committed Sep 18, 2015
1 parent 5365f63 commit 1e86092
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,11 +201,6 @@ public Category getCategory() {

protected abstract Category getDefaultCategory();

/**
* Initiates lesson restart functionality
*/
public abstract void restartLesson();

protected abstract boolean getDefaultHidden();

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,14 +108,6 @@ protected boolean getDefaultHidden() {
return false;
}

/**
* Initiates lesson restart functionality. Lessons should override this for
* lesson specific actions
*/
public void restartLesson() {
// Do Nothing - called when restart lesson is pressed. Each lesson can do something
}

private final static Integer DEFAULT_RANKING = new Integer(1000);

protected Integer getDefaultRanking() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -949,7 +949,6 @@ public void updateLastAttackRequestInfo(HttpServletRequest request) {
public void restartLesson(int lessonId) {
AbstractLesson al = getLesson(lessonId);
System.out.println("Restarting lesson: " + al);
al.restartLesson();
al.getLessonTracker(this).setCompleted(false);
if (al instanceof SequentialLessonAdapter) {
SequentialLessonAdapter sla = (SequentialLessonAdapter) al;
Expand Down

0 comments on commit 1e86092

Please sign in to comment.