JAL-3878 Remove unused JobStatus methods
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 3 Mar 2022 13:36:39 +0000 (14:36 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Thu, 3 Mar 2022 13:59:57 +0000 (14:59 +0100)
src/jalview/ws2/api/JobStatus.java

index 1dabc6b..0334737 100644 (file)
@@ -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;
-  }
 }