Skip to content

Commit

Permalink
remove unneeded if statement
Browse files Browse the repository at this point in the history
Signed-off-by: John Shepherd <john@openrobotics.org>
  • Loading branch information
John Shepherd committed Oct 29, 2020
1 parent e7acbc8 commit 755b88d
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/EntityComponentManager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -851,15 +851,6 @@ void EntityComponentManager::AddEntityToMessage(msgs::SerializedStateMap &_msg,

// TODO(anyone) Set component being removed once we have a way to queue it
}

// Remove the entity from the message if a component for the entity was
// not modified or added. This will allow the state message to shrink.
if (entIter == _msg.mutable_entities()->end() &&
(entIter = _msg.mutable_entities()->find(_entity)) !=
_msg.mutable_entities()->end())
{
_msg.mutable_entities()->erase(entIter);
}
}

//////////////////////////////////////////////////
Expand Down

0 comments on commit 755b88d

Please sign in to comment.