Skip to content

Commit

Permalink
contains does an identity check and is therefore redunant - unless so…
Browse files Browse the repository at this point in the history
…me extra logic was intended here?

Signed-off-by: Egon Willighagen <egonw@users.sourceforge.net>
  • Loading branch information
johnmay authored and egonw committed May 4, 2015
1 parent 1d76286 commit cb28cde
Showing 1 changed file with 1 addition and 2 deletions.
Expand Up @@ -422,8 +422,7 @@ private IAtomContainer getPharmacophoreMolecule(IAtomContainer input) throws CDK
PharmacophoreAtom patom = new PharmacophoreAtom(smarts, qatom.getSymbol(), coords);
// n.b. mapping[] is reusued for efficient to need to make an explict copy
patom.setMatchingAtoms(Arrays.copyOf(mapping, mapping.length));
if (!pharmacophoreMolecule.contains(patom))
pharmacophoreMolecule.addAtom(patom);
pharmacophoreMolecule.addAtom(patom);
count++;
}
}
Expand Down

0 comments on commit cb28cde

Please sign in to comment.