get rid of _avatarEntityChangedTime

This commit is contained in:
Seth Alves 2016-05-10 14:47:41 -07:00
parent de4c9530c9
commit 1e849956c9
2 changed files with 1 additions and 5 deletions

View file

@ -183,10 +183,8 @@ void Avatar::updateAvatarEntities() {
// - setAvatarEntityData saves the bytes and sets _avatarEntityDataChanged = true
// - (My)Avatar::simulate notices _avatarEntityDataChanged and here we are...
quint64 now = usecTimestampNow();
const static quint64 refreshTime = 3 * USECS_PER_SECOND;
if (!_avatarEntityDataChanged && now - _avatarEntityChangedTime < refreshTime) {
if (!_avatarEntityDataChanged) {
return;
}
@ -247,7 +245,6 @@ void Avatar::updateAvatarEntities() {
if (success) {
setAvatarEntityDataChanged(false);
_avatarEntityChangedTime = now;
}
}

View file

@ -423,7 +423,6 @@ protected:
AvatarEntityMap _avatarEntityData;
bool _avatarEntityDataLocallyEdited { false };
bool _avatarEntityDataChanged { false };
quint64 _avatarEntityChangedTime { 0 };
private:
friend void avatarStateFromFrame(const QByteArray& frameData, AvatarData* _avatar);