JAL-2068 small refactor to reuse shared method
authorgmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 19 Jul 2016 17:31:02 +0000 (18:31 +0100)
committergmungoc <g.m.carstairs@dundee.ac.uk>
Tue, 19 Jul 2016 17:31:02 +0000 (18:31 +0100)
src/jalview/workers/AnnotationWorker.java

index efe707a..65603d6 100644 (file)
@@ -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