Revert "Added a lesson restart call to allow lesson specific restart functionality"
This reverts commit 5365f632e7d2277fa024b5a0863654c416c0b3bc.
This commit is contained in:
parent
5365f632e7
commit
1e860928e6
@ -201,11 +201,6 @@ public abstract class AbstractLesson extends Screen implements Comparable<Object
|
||||
|
||||
protected abstract Category getDefaultCategory();
|
||||
|
||||
/**
|
||||
* Initiates lesson restart functionality
|
||||
*/
|
||||
public abstract void restartLesson();
|
||||
|
||||
protected abstract boolean getDefaultHidden();
|
||||
|
||||
/**
|
||||
|
@ -108,14 +108,6 @@ public abstract class LessonAdapter extends AbstractLesson {
|
||||
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() {
|
||||
|
@ -949,7 +949,6 @@ public class WebSession {
|
||||
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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user