Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unneeded if statement #432

Merged
merged 19 commits into from
Nov 18, 2020
Merged
Changes from 16 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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