From 82d67c3ef200e3e78b34f7ca4434d40b810f42cc Mon Sep 17 00:00:00 2001 From: Robert von Burg Date: Wed, 26 Jan 2022 12:53:25 +0100 Subject: [PATCH] [Major] Removed obsolete IActivityElement.inExecutionWarningPhase() --- .../src/main/java/li/strolch/model/State.java | 16 +--------------- .../strolch/model/activity/IActivityElement.java | 4 ---- 2 files changed, 1 insertion(+), 19 deletions(-) diff --git a/li.strolch.model/src/main/java/li/strolch/model/State.java b/li.strolch.model/src/main/java/li/strolch/model/State.java index 776c26e18..375f6c2fb 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/State.java +++ b/li.strolch.model/src/main/java/li/strolch/model/State.java @@ -65,7 +65,7 @@ public enum State { } /** - * @return true if the state is one of {@link #EXECUTABLE} {@link #EXECUTION}, {@link #STOPPED}, {@link #WARNING}, + * @return true if the state is one of {@link #EXECUTION}, {@link #STOPPED}, {@link #WARNING}, * {@link #ERROR} or {@link #EXECUTED} */ public boolean inExecutionPhase() { @@ -86,13 +86,6 @@ public enum State { return this == ERROR || this == STOPPED; } - /** - * @return true if the state is one of {@link #EXECUTION}, {@link #STOPPED}, {@link #WARNING} or {@link #ERROR} - */ - public boolean inExecutionWarningPhase() { - return this == EXECUTION || this == STOPPED || this == WARNING || this == ERROR; - } - /** * @return true if the state is {@link #EXECUTED} or {@link #CLOSED} */ @@ -184,13 +177,6 @@ public enum State { return this == CREATED || this == PLANNING || this == PLANNED; } - /** - * @return true if {@link #PLANNED} or {@link #EXECUTABLE} or {@link #STOPPED} - */ - public boolean canSetToExecutable() { - return this == PLANNED || this == EXECUTABLE || this == State.STOPPED; - } - /** * @return true if state >= {@link #EXECUTED} */ diff --git a/li.strolch.model/src/main/java/li/strolch/model/activity/IActivityElement.java b/li.strolch.model/src/main/java/li/strolch/model/activity/IActivityElement.java index 895953365..9ef43d8b8 100644 --- a/li.strolch.model/src/main/java/li/strolch/model/activity/IActivityElement.java +++ b/li.strolch.model/src/main/java/li/strolch/model/activity/IActivityElement.java @@ -198,10 +198,6 @@ public interface IActivityElement extends StrolchElement { return getState().inErrorPhase(); } - default boolean inExecutionWarningPhase() { - return getState().inExecutionWarningPhase(); - } - default boolean inClosedPhase() { return getState().inClosedPhase(); }