Skip to content

Commit

Permalink
Remove unused on the return value of a map emplace
Browse files Browse the repository at this point in the history
  • Loading branch information
ptheywood committed Oct 21, 2022
1 parent 51ac134 commit 39640ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flamegpu/gpu/CUDASimulation.cu
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ CUDASimulation::CUDASimulation(const std::shared_ptr<const ModelData> &_model)
// create new cuda agent and add to the map
for (auto it = am.cbegin(); it != am.cend(); ++it) {
// insert into map using value_type and store a reference to the map pair
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this)).first;
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this));
}

// populate the CUDA message map
Expand Down Expand Up @@ -153,7 +153,7 @@ CUDASimulation::CUDASimulation(const std::shared_ptr<SubModelData> &submodel_des
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this, masterAgent, mapping));
} else {
// Agent is not mapped, create regular agent
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this)).first;
agent_map.emplace(it->first, std::make_unique<CUDAAgent>(*it->second, *this));
}
} // insert into map using value_type

Expand Down

0 comments on commit 39640ab

Please sign in to comment.