Skip to content

Commit

Permalink
Merge pull request #4153 from kunaltyagi/unneeded_check
Browse files Browse the repository at this point in the history
Remove redundant checking for existence in STL maps/sets
  • Loading branch information
SergioRAgostinho authored May 29, 2020
2 parents 158e33c + 04ce078 commit b42b090
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions visualization/src/cloud_viewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,7 @@ struct pcl::visualization::CloudViewer::CloudViewer_impl
remove (const std::string &key)
{
std::lock_guard<std::mutex> lock (c_mtx);
if (callables.find (key) != callables.end ())
callables.erase (key);
callables.erase (key);
}

std::string window_name_;
Expand Down

0 comments on commit b42b090

Please sign in to comment.