1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 19:14:47 +02:00

Remove the time_t parameter from Tick and TickTimers.

Most uses of Tick do not use the parameter and even when it is used
it is always the same as CurTime.
This commit is contained in:
Sadie Powell
2024-02-11 18:16:20 +00:00
parent cef56abea4
commit 5c50bcb9c7
15 changed files with 29 additions and 25 deletions
+5 -3
View File
@@ -493,7 +493,9 @@ public:
}
/* Times out after a few seconds */
void Tick(time_t) override { }
void Tick() override
{
}
void Reply(Packet *p) override
{
@@ -968,7 +970,7 @@ public:
return serial;
}
void Tick(time_t now) override
void Tick() override
{
Log(LOG_DEBUG_2) << "Resolver: Purging DNS cache";
@@ -979,7 +981,7 @@ public:
it_next = it;
++it_next;
if (req.created + static_cast<time_t>(req.ttl) < now)
if (req.created + static_cast<time_t>(req.ttl) < Anope::CurTime)
this->cache.erase(it);
}
}