From: Mateusz Warowny Date: Thu, 3 Mar 2022 13:36:39 +0000 (+0100) Subject: JAL-3878 Remove unused JobStatus methods X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=c0e15ec4e2e8b4cca28446ac75a408c5916664d2;p=jalview.git JAL-3878 Remove unused JobStatus methods --- diff --git a/src/jalview/ws2/api/JobStatus.java b/src/jalview/ws2/api/JobStatus.java index 1dabc6b..0334737 100644 --- a/src/jalview/ws2/api/JobStatus.java +++ b/src/jalview/ws2/api/JobStatus.java @@ -33,12 +33,12 @@ public enum JobStatus { switch (this) { + case INVALID: case COMPLETED: case FAILED: case CANCELLED: case SERVER_ERROR: return true; - case INVALID: case READY: case SUBMITTED: case QUEUED: @@ -49,14 +49,4 @@ public enum JobStatus throw new AssertionError("non-exhaustive switch statement"); } } - - public boolean isCompleted() - { - return this == COMPLETED; - } - - public boolean isCancelled() - { - return this == CANCELLED; - } }