From d19882378d8912834a5e196a30f78491cb1e621a Mon Sep 17 00:00:00 2001 From: Mateusz Warowny Date: Tue, 4 Jul 2023 10:20:14 +0200 Subject: [PATCH] JAL-4199 Remove taskRestarted from task events --- src/jalview/ws2/actions/api/TaskEventListener.java | 9 --------- src/jalview/ws2/gui/AlignmentServiceGuiHandler.java | 6 ------ src/jalview/ws2/gui/AnnotationServiceGuiHandler.java | 6 ------ 3 files changed, 21 deletions(-) diff --git a/src/jalview/ws2/actions/api/TaskEventListener.java b/src/jalview/ws2/actions/api/TaskEventListener.java index 94de9d0..f48272a 100644 --- a/src/jalview/ws2/actions/api/TaskEventListener.java +++ b/src/jalview/ws2/actions/api/TaskEventListener.java @@ -63,15 +63,6 @@ public interface TaskEventListener */ void taskException(TaskI source, Exception e); - /** - * Invoked when the task had been restarted. This event is only applicable to - * restartable tasks and will precede each {@link #taskStarted} after the - * first one. - * - * @param source - * task this event originates from - */ - void taskRestarted(TaskI source); /** * Invoked when the status of a sub-job has changed. diff --git a/src/jalview/ws2/gui/AlignmentServiceGuiHandler.java b/src/jalview/ws2/gui/AlignmentServiceGuiHandler.java index fd1d0ad..caa0573 100644 --- a/src/jalview/ws2/gui/AlignmentServiceGuiHandler.java +++ b/src/jalview/ws2/gui/AlignmentServiceGuiHandler.java @@ -230,12 +230,6 @@ class AlignmentServiceGuiHandler } @Override - public void taskRestarted(TaskI source) - { - // alignment services are not restartable - } - - @Override public void subJobStatusChanged(TaskI source, JobI job, JobStatus status) { int i = ArrayUtils.indexOf(jobs, job); diff --git a/src/jalview/ws2/gui/AnnotationServiceGuiHandler.java b/src/jalview/ws2/gui/AnnotationServiceGuiHandler.java index 43e2680..32bc4b1 100644 --- a/src/jalview/ws2/gui/AnnotationServiceGuiHandler.java +++ b/src/jalview/ws2/gui/AnnotationServiceGuiHandler.java @@ -95,12 +95,6 @@ public class AnnotationServiceGuiHandler } @Override - public void taskRestarted(TaskI source) - { - - } - - @Override public void subJobStatusChanged(TaskI source, JobI job, JobStatus status) { -- 1.7.10.2