Skip to content

Commit

Permalink
Removed more unused local variables (PMD report).
Browse files Browse the repository at this point in the history
Signed-off-by: John May <john.wilkinsonmay@gmail.com>
  • Loading branch information
Mark B Vine authored and johnmay committed Aug 29, 2014
1 parent 2ad6c76 commit 3bdfc6a
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 12 deletions.
Expand Up @@ -52,8 +52,6 @@ public class HuLuIndexTool
public static double getEAIDNumber(AtomContainer atomContainer) throws NoSuchAtomException,
BadMatrixFormatException,IndexOutOfBoundsException
{
boolean debug = false;

GIMatrix matrix = new GIMatrix(getExtendedAdjacenyMatrix(atomContainer));

GIMatrix tempMatrix = matrix;
Expand Down Expand Up @@ -81,7 +79,6 @@ public static double getEAIDNumber(AtomContainer atomContainer) throws NoSuchAto
public static double[][] getExtendedAdjacenyMatrix(AtomContainer atomContainer)
throws NoSuchAtomException
{
boolean debug = false;
double[][] adjaMatrix = ConnectionMatrix.getMatrix(atomContainer);

logger.debug("adjacency matrix: ");
Expand Down Expand Up @@ -120,7 +117,6 @@ public static double[][] getExtendedAdjacenyMatrix(AtomContainer atomContainer)

public static double[] getAtomWeights(AtomContainer atomContainer) throws NoSuchAtomException
{
boolean debug = false;
IAtom atom,headAtom,endAtom;
int headAtomPosition,endAtomPosition;

Expand Down
Expand Up @@ -192,12 +192,10 @@ private boolean calculateAbundanceAndMass(String elementSymbol) {
}

Iterator<Double> itr = isotopeMassAndAbundance.keySet().iterator();
int i = 0;
abundance_Mass = new IsotopePattern();
while (itr.hasNext()) {
mass = itr.next();
abundance_Mass.addIsotope(new IsotopeContainer(mass, isotopeMassAndAbundance.get(mass)));
i++;
}
}

Expand Down
Expand Up @@ -332,12 +332,8 @@ private void placeBridgedRing(IRing ring, IAtomContainer sharedAtoms, Point2d s
startAngle = GeometryTools.getAngle(startAtom.getPoint2d().x - ringCenter.x, startAtom.getPoint2d().y - ringCenter.y);

IAtom currentAtom = startAtom;
// determine first bond in Ring
int k = 0;
// for (k = 0; k < ring.getElectronContainerCount(); k++) {
// if (ring.getElectronContainer(k) instanceof IBond) break;
// }
IBond currentBond = sharedAtoms.getBond(0);

IBond currentBond = sharedAtoms.getBond(0);
Vector atomsToDraw = new Vector();
for (int i = 0; i < ring.getBondCount(); i++)
{
Expand Down

0 comments on commit 3bdfc6a

Please sign in to comment.