Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Removed methods, to get the number of unit test fails down; this two …
…classes will be remove completely, so skipping peer review
  • Loading branch information
egonw committed Dec 9, 2011
1 parent f4647d8 commit 1bbfe5a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 16 deletions.
8 changes: 0 additions & 8 deletions src/main/org/openscience/cdk/MoleculeSet.java
Expand Up @@ -77,10 +77,6 @@ public MoleculeSet() {}
* an IMolecule.
*/
public void addAtomContainer(IAtomContainer atomContainer) {
if (!(atomContainer instanceof IMolecule))
throw new IllegalArgumentException(
"Only IMolecule's can be stored in an IMoleculeSet"
);
super.addAtomContainer(atomContainer);
}

Expand All @@ -94,10 +90,6 @@ public void addAtomContainer(IAtomContainer atomContainer) {
* an IMolecule.
*/
public void addAtomContainer(IAtomContainer atomContainer, double multiplier) {
if (!(atomContainer instanceof IMolecule))
throw new IllegalArgumentException(
"Only IMolecule's can be stored in an IMoleculeSet"
);
super.addAtomContainer(atomContainer, multiplier);
}

Expand Down
8 changes: 0 additions & 8 deletions src/main/org/openscience/cdk/silent/MoleculeSet.java
Expand Up @@ -72,10 +72,6 @@ public MoleculeSet() {}
* an IMolecule.
*/
public void addAtomContainer(IAtomContainer atomContainer) {
if (!(atomContainer instanceof IMolecule))
throw new IllegalArgumentException(
"Only IMolecule's can be stored in an IMoleculeSet"
);
super.addAtomContainer(atomContainer);
}

Expand All @@ -89,10 +85,6 @@ public void addAtomContainer(IAtomContainer atomContainer) {
* an IMolecule.
*/
public void addAtomContainer(IAtomContainer atomContainer, double multiplier) {
if (!(atomContainer instanceof IMolecule))
throw new IllegalArgumentException(
"Only IMolecule's can be stored in an IMoleculeSet"
);
super.addAtomContainer(atomContainer, multiplier);
}

Expand Down

0 comments on commit 1bbfe5a

Please sign in to comment.