dif is never used
[jalview.git] / src / jalview / gui / AnnotationLabels.java
index 0ea7730..a4be664 100755 (executable)
@@ -147,7 +147,6 @@ public class AnnotationLabels
    */
   public void actionPerformed(ActionEvent evt)
   {
-    int dif = 0;
     AlignmentAnnotation[] aa = ap.av.alignment.getAlignmentAnnotation();
 
     if (evt.getActionCommand().equals(ADDNEW))
@@ -163,10 +162,6 @@ public class AnnotationLabels
 
       ap.av.alignment.addAnnotation(newAnnotation);
       ap.av.alignment.setAnnotationIndex(newAnnotation, 0);
-      if (aa != null)
-      {
-        dif = aa[aa.length - 1].height;
-      }
     }
     else if (evt.getActionCommand().equals(EDITNAME))
     {
@@ -181,13 +176,10 @@ public class AnnotationLabels
       {
         ap.av.quality = null;
       }
-
-      dif = aa[selectedRow].height * -1;
     }
     else if (evt.getActionCommand().equals(DELETE))
     {
       ap.av.alignment.deleteAnnotation(aa[selectedRow]);
-      dif = aa[selectedRow].height * -1;
     }
     else if (evt.getActionCommand().equals(SHOWALL))
     {
@@ -195,7 +187,6 @@ public class AnnotationLabels
       {
         if (!aa[i].visible && aa[i].annotations!=null)
         {
-          dif += aa[i].height;
           aa[i].visible = true;
         }
       }
@@ -380,7 +371,7 @@ public class AnnotationLabels
       {
         desc.append(aa.description+"<br>");
       }
-      if(!Float.isNaN(aa.score))
+      if(aa.hasScore())
       {
         desc.append("Score: "+aa.score);
       }
@@ -643,13 +634,7 @@ public class AnnotationLabels
         }
         else
         {
-          if(aa[i].belowAlignment)
-            g.setColor(Color.ORANGE);
-          else
-            g.setColor(Color.red);
-
           g.drawString(aa[i].label, x, y +offset);
-
         }
       }
     }