JAL-2068 AnnotationWorker create/update annotation, not delete / re-add
[jalview.git] / src / jalview / workers / ColumnCounterWorker.java
index 4e1a336..2f73cb5 100644 (file)
@@ -184,35 +184,6 @@ class ColumnCounterWorker extends AlignCalcWorker
   }
 
   /**
-   * Calculate min and max values of annotations and set as graphMin, graphMax
-   * on the AlignmentAnnotation. This is needed because otherwise, well, bad
-   * things happen.
-   * 
-   * @param ann
-   * @param anns
-   */
-  private void setGraphMinMax(AlignmentAnnotation ann, Annotation[] anns)
-  {
-    // TODO feels like this belongs inside AlignmentAnnotation!
-    float max = Float.MIN_VALUE;
-    float min = Float.MAX_VALUE;
-    boolean set = false;
-    for (Annotation a : anns) {
-      if (a != null) {
-        set = true;
-        float val = a.value;
-        max = Math.max(max, val);
-        min = Math.min(min, val);
-      }
-    }
-    if (set)
-    {
-      ann.graphMin = min;
-      ann.graphMax = max;
-    }
-  }
-
-  /**
    * Returns a count of any feature types present at the specified position of
    * the alignment
    *