JAL-3878 Remove redundand edit params dialog method from the AnnotationOperation.
authorMateusz Warowny <mmzwarowny@dundee.ac.uk>
Wed, 10 Nov 2021 11:14:22 +0000 (12:14 +0100)
committerMateusz Warowny <mmzwarowny@dundee.ac.uk>
Wed, 10 Nov 2021 11:14:22 +0000 (12:14 +0100)
src/jalview/ws2/operations/AnnotationOperation.java

index c1d2c7e..6518733 100644 (file)
@@ -168,36 +168,4 @@ public class AnnotationOperation implements Operation
     return new AnnotationMenuBuilder(this);
   }
 
-
-  private CompletionStage<List<ArgumentI>> openEditParamsDialog(
-      WebServiceI service, WsParamSetI preset, List<ArgumentI> arguments)
-  {
-    WsJobParameters jobParams;
-    if (preset == null && arguments != null && arguments.size() > 0)
-      jobParams = new WsJobParameters(service.getParamStore(), preset,
-          arguments);
-    else
-      jobParams = new WsJobParameters(service.getParamStore(), preset,
-          null);
-    if (preset != null)
-    {
-      jobParams.setName(MessageManager.getString(
-          "label.adjusting_parameters_for_calculation"));
-    }
-    var stage = jobParams.showRunDialog();
-    return stage.thenApply((startJob) -> {
-      if (startJob)
-      {
-        if (jobParams.getPreset() == null)
-          return jobParams.getJobParams();
-        else
-          return jobParams.getPreset().getArguments();
-      }
-      else
-      {
-        return null;
-      }
-    });
-  }
-
 }