diff options
-rw-r--r-- | src/lib/tng_io.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/lib/tng_io.c b/src/lib/tng_io.c index fb6089c..252cbb2 100644 --- a/src/lib/tng_io.c +++ b/src/lib/tng_io.c @@ -8515,21 +8515,9 @@ tng_function_status DECLSPECDLLEXPORT tng_molecule_bond_add const int64_t to_atom_id, tng_bond_t *bond) { - int64_t i; tng_bond_t new_bonds; (void)tng_data; - for(i = 0; i < molecule->n_bonds; i++) - { - *bond = &molecule->bonds[i]; - /* Check if the bond already exists */ - if(((*bond)->from_atom_id == from_atom_id && (*bond)->to_atom_id == to_atom_id) || - ((*bond)->to_atom_id == from_atom_id && (*bond)->from_atom_id == to_atom_id)) - { - return(TNG_SUCCESS); - } - } - new_bonds = realloc(molecule->bonds, sizeof(struct tng_bond) * (molecule->n_bonds + 1)); |