Eliminate the legacyFlags manipulation in do_force()
[alexxy/gromacs.git] / src / gromacs / mdlib / sim_util.cpp
index 984df2b145646d88ecbbb6377a3a9e791c1b2713..07644556aaf76f22885166f8bafb2fccc4db81ae 100644 (file)
@@ -930,13 +930,6 @@ void do_force(FILE*                               fplog,
     interaction_const_t*         ic       = fr->ic;
     gmx::StatePropagatorDataGpu* stateGpu = fr->stateGpu;
 
-    // TODO remove the code below when the legacy flags are not in use anymore
-    /* modify force flag if not doing nonbonded */
-    if (!fr->bNonbonded)
-    {
-        legacyFlags &= ~GMX_FORCE_NONBONDED;
-    }
-
     const SimulationWorkload& simulationWork = runScheduleWork->simulationWork;