Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed some unused local variables (PMD reports). #50

Closed
wants to merge 1 commit into from
Closed

Removed some unused local variables (PMD reports). #50

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 1, 2014

No description provided.

@@ -92,7 +92,6 @@ public IReaction initiate(IAtomContainerSet atomContainerSet, ArrayList<IAtom> a
IAtom atom1 = atomList.get(0);// Atom with the charge
IAtom atom1C = reactantCloned.getAtom(molecule.getAtomNumber(atom1));
IAtom atom2 = atomList.get(1);// Atom not participating
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

atom2 was only used by the line that has now been removed - I've fixed this up in the commit.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi John,

Thanks for spotting that - I tend to leave these to be found on the next PMD iteration...

Mark

From: John May
Sent: Monday, September 01, 2014 3:39 PM
To: cdk/cdk
Cc: mbv31602
Subject: Re: [cdk] Removed some unused local variables (PMD reports). (#50)

In base/reaction/src/main/java/org/openscience/cdk/reaction/mechanism/RearrangementChargeMechanism.java:

@@ -92,7 +92,6 @@ public IReaction initiate(IAtomContainerSet atomContainerSet, ArrayList a
IAtom atom1 = atomList.get(0);// Atom with the charge
IAtom atom1C = reactantCloned.getAtom(molecule.getAtomNumber(atom1));
IAtom atom2 = atomList.get(1);// Atom not participating
atom2 was only used by the line that has now been removed - I've fixed this up in the commit.


Reply to this email directly or view it on GitHub.

@johnmay
Copy link
Member

johnmay commented Sep 1, 2014

Applied and pushed (modified commit with comment above).

@johnmay johnmay closed this Sep 1, 2014
@ghost ghost deleted the pmd/UnusedLocalVariable_2 branch September 1, 2014 19:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant