From e3f8c52e98012a263e444ce8a105b1731a62c4a8 Mon Sep 17 00:00:00 2001 From: amwaterhouse Date: Mon, 7 May 2007 13:59:27 +0000 Subject: [PATCH] dif is never used --- src/jalview/gui/AnnotationLabels.java | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/jalview/gui/AnnotationLabels.java b/src/jalview/gui/AnnotationLabels.java index a0648c7..a4be664 100755 --- a/src/jalview/gui/AnnotationLabels.java +++ b/src/jalview/gui/AnnotationLabels.java @@ -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; } } -- 1.7.10.2