Skip to content

Commit

Permalink
Removed obsoleted code by Ni patch
Browse files Browse the repository at this point in the history
  • Loading branch information
egonw committed Sep 4, 2011
1 parent 8026156 commit 682d0a1
Showing 1 changed file with 0 additions and 14 deletions.
14 changes: 0 additions & 14 deletions src/main/org/openscience/cdk/atomtype/CDKAtomTypeMatcher.java
Expand Up @@ -1459,20 +1459,6 @@ private IAtomType perceiveCommonSalts(IAtomContainer atomContainer, IAtom atom)
IAtomType type = getAtomType("Co.metallic");
if (isAcceptable(atom, atomContainer, type)) return type;
}
} else if ("Ni".equals(atom.getSymbol())) {
if (hasOneSingleElectron(atomContainer, atom)) {
// no idea how to deal with this yet
return null;
} else if ((atom.getFormalCharge() != CDKConstants.UNSET &&
atom.getFormalCharge() == +2)) {
IAtomType type = getAtomType("Ni.2plus");
if (isAcceptable(atom, atomContainer, type)) return type;
} else if ((atom.getFormalCharge() != CDKConstants.UNSET &&
atom.getFormalCharge() == 0) &&
atomContainer.getConnectedAtomsCount(atom) <= 2) {
IAtomType type = getAtomType("Ni");
if (isAcceptable(atom, atomContainer, type)) return type;
}
} else if ("W".equals(atom.getSymbol())) {
if (hasOneSingleElectron(atomContainer, atom)) {
// no idea how to deal with this yet
Expand Down

0 comments on commit 682d0a1

Please sign in to comment.