From 0580d6486ec69ff7a9bc8b406cb3703afaca767c Mon Sep 17 00:00:00 2001 From: gmungoc Date: Tue, 19 Jul 2016 18:31:02 +0100 Subject: [PATCH] JAL-2068 small refactor to reuse shared method --- src/jalview/workers/AnnotationWorker.java | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/jalview/workers/AnnotationWorker.java b/src/jalview/workers/AnnotationWorker.java index efe707a..65603d6 100644 --- a/src/jalview/workers/AnnotationWorker.java +++ b/src/jalview/workers/AnnotationWorker.java @@ -79,7 +79,7 @@ class AnnotationWorker extends AlignCalcWorker return; } - removeAnnotations(); + removeAnnotation(); AlignmentI alignment = alignViewport.getAlignment(); if (alignment != null) { @@ -114,19 +114,6 @@ class AnnotationWorker extends AlignCalcWorker ap.adjustAnnotationHeight(); ap.paintAlignment(true); } - - } - - /** - * Remove all our annotations before re-calculating them - */ - void removeAnnotations() - { - for (AlignmentAnnotation ann : ourAnnots) - { - alignViewport.getAlignment().deleteAnnotation(ann); - } - ourAnnots.clear(); } @Override -- 1.7.10.2