mirror of
https://github.com/lubosz/overte.git
synced 2025-04-16 06:16:18 +02:00
Remove duplicate function
This commit is contained in:
parent
bd6dbadade
commit
59fb448698
2 changed files with 1 additions and 5 deletions
|
@ -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);
|
||||
|
|
|
@ -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; }
|
||||
|
|
Loading…
Reference in a new issue