diff --git a/modules/mol/mm/src/forcefield.cc b/modules/mol/mm/src/forcefield.cc index b1e18b776e4a201db3c981fa34b1583cbe5b2048..666de94176062ee9737befc05d2e0db0eee9d0af 100644 --- a/modules/mol/mm/src/forcefield.cc +++ b/modules/mol/mm/src/forcefield.cc @@ -657,10 +657,7 @@ MMInteractionPtr Forcefield::GetLJ(const String& type1, temp1 = this->GetLJ(type1); temp2 = this->GetLJ(type2); if(temp1 && temp2){ - MMInteraction* interaction_ptr; - if(pair) interaction_ptr = new MMInteraction(LJPair); - else interaction_ptr = new MMInteraction(LJ); - MMInteractionPtr return_ptr(interaction_ptr); + MMInteractionPtr return_ptr(new MMInteraction(LJPair)); std::vector<Real> param1, param2, param; param1 = temp1->GetParam(); param2 = temp2->GetParam();