Remove duplicate function

This commit is contained in:
Zach Fox 2018-03-30 10:28:40 -07:00
parent bd6dbadade
commit 59fb448698
2 changed files with 1 additions and 5 deletions

View file

@ -489,7 +489,7 @@ void EntityServer::startDynamicDomainVerification() {
if (networkReply->error() == QNetworkReply::NoError) {
if (jsonObject["domain_id"].toString() != thisDomainID) {
if (entity->getCreatedAgo() > (_MAXIMUM_DYNAMIC_DOMAIN_VERIFICATION_TIMER_MS/MSECS_PER_SECOND)) {
if (entity->getAge() > (_MAXIMUM_DYNAMIC_DOMAIN_VERIFICATION_TIMER_MS/MSECS_PER_SECOND)) {
qCDebug(entities) << "Entity's cert's domain ID" << jsonObject["domain_id"].toString()
<< "doesn't match the current Domain ID" << thisDomainID << "; deleting entity" << i.value();
tree->deleteEntity(i.value(), true);

View file

@ -222,10 +222,6 @@ public:
quint64 getCreated() const; /// get the created-time in useconds for the entity
void setCreated(quint64 value); /// set the created-time in useconds for the entity
float getCreatedAgo() const /// Elapsed seconds since this entity was created
{
return (float)(usecTimestampNow() - getCreated()) / (float)USECS_PER_SECOND;
}
/// is this entity immortal, in that it has no lifetime set, and will exist until manually deleted
bool isImmortal() const { return getLifetime() == ENTITY_ITEM_IMMORTAL_LIFETIME; }