--- a/src/main/java/de/uapcore/lightpit/MenuEntry.java Thu Oct 08 18:28:16 2020 +0200 +++ b/src/main/java/de/uapcore/lightpit/MenuEntry.java Thu Oct 08 20:16:47 2020 +0200 @@ -50,33 +50,12 @@ */ private boolean active = false; - /** - * The menu level. - */ - private int level; - public MenuEntry(ResourceKey resourceKey, String pathName) { - this(0, resourceKey, pathName); - } - - public MenuEntry(String text, String pathName) { - this(0, text, pathName); - } - - public MenuEntry(int level, ResourceKey resourceKey, String pathName) { - this.level = level; this.text = null; this.resourceKey = resourceKey; this.pathName = pathName; } - public MenuEntry(int level, String text, String pathName) { - this.level = level; - this.text = text; - this.resourceKey = null; - this.pathName = pathName; - } - public ResourceKey getResourceKey() { return resourceKey; } @@ -94,14 +73,6 @@ } public void setActive(boolean active) { - this.active = true; - } - - public int getLevel() { - return level; - } - - public void setLevel(int level) { - this.level = level; + this.active = active; } }