Skip to content

Commit

Permalink
remove useless if 2
Browse files Browse the repository at this point in the history
  • Loading branch information
payetvin committed Jul 19, 2024
1 parent b4316f2 commit d69b14d
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions src/libs/antares/study/area/list.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -451,16 +451,13 @@ void AreaList::clear()
{
byIndex.clear();

if (!areas.empty())
{
Area::Map copy;
copy.swap(areas);
Area::Map copy;
copy.swap(areas);

auto end = copy.end();
for (auto i = copy.begin(); i != end; ++i)
{
delete i->second;
}
auto end = copy.end();
for (auto i = copy.begin(); i != end; ++i)
{
delete i->second;
}
}

Expand Down

0 comments on commit d69b14d

Please sign in to comment.