From: gmungoc Date: Tue, 19 Jul 2016 17:31:02 +0000 (+0100) Subject: JAL-2068 small refactor to reuse shared method X-Git-Tag: Release_2_10_0~125^2~14 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=0580d6486ec69ff7a9bc8b406cb3703afaca767c;p=jalview.git JAL-2068 small refactor to reuse shared method --- 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