From: Jim Procter Date: Fri, 6 May 2016 14:31:09 +0000 (+0100) Subject: JAL-192 JAL-2099 unused variables X-Git-Tag: Release_2_10_0~227^2~2^2~1 X-Git-Url: http://source.jalview.org/gitweb/?a=commitdiff_plain;h=fa7eb69d9da6df5ed78244d1968adbaa3b3b677c;p=jalview.git JAL-192 JAL-2099 unused variables --- diff --git a/src/jalview/gui/ScalePanel.java b/src/jalview/gui/ScalePanel.java index 0ed0ae4..f2cbf33 100755 --- a/src/jalview/gui/ScalePanel.java +++ b/src/jalview/gui/ScalePanel.java @@ -460,7 +460,6 @@ public class ScalePanel extends JPanel implements MouseMotionListener, ColumnSelection cs = av.getColumnSelection(); int avCharWidth = av.getCharWidth(), avCharHeight = av.getCharHeight(); - int s; if (cs != null) { gg.setColor(new Color(220, 0, 0)); diff --git a/src/jalview/renderer/ScaleRenderer.java b/src/jalview/renderer/ScaleRenderer.java index d91ea74..52778d5 100644 --- a/src/jalview/renderer/ScaleRenderer.java +++ b/src/jalview/renderer/ScaleRenderer.java @@ -49,7 +49,7 @@ public class ScaleRenderer int scalestartx = (startx / 10) * 10; SequenceI refSeq = av.getAlignment().getSeqrep(); - int refSp = 0, refEp = -1, refStart = 0, refEnd = -1, refStartI = 0, refEndI = -1; + int refSp = 0, refStartI = 0, refEndI = -1; if (refSeq != null) { // find bounds and set origin appopriately @@ -58,9 +58,6 @@ public class ScaleRenderer .locateVisibleBoundsOfSequence(refSeq); refSp = refbounds[0]; - refEp = refbounds[1]; - refStart = refbounds[2]; - refEnd = refbounds[3]; refStartI = refbounds[4]; refEndI = refbounds[5]; scalestartx = refSp + ((scalestartx - refSp) / 10) * 10; @@ -72,7 +69,7 @@ public class ScaleRenderer } List marks = new ArrayList(); String string; - int maxX = 0, refN, iadj; + int refN, iadj; // todo: add a 'reference origin column' to set column number relative to for (int i = scalestartx; i < endx; i += 5) {