1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 06:33:13 +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
+1 -1
View File
@@ -173,7 +173,7 @@ namespace DNS
/** Used to time out the query, xalls OnError and lets the TimerManager
* delete this request.
*/
void Tick(time_t) override
void Tick() override
{
Log(LOG_DEBUG_2) << "Resolver: timeout for query " << this->name;
Query rr(*this);
+2 -2
View File
@@ -83,7 +83,7 @@ public:
/** Called when the timer ticks
* This should be overridden with something useful
*/
virtual void Tick(time_t ctime) = 0;
virtual void Tick() = 0;
};
/** This class manages sets of Timers, and triggers them at their defined times.
@@ -109,7 +109,7 @@ public:
/** Tick all pending timers
* @param ctime The current time
*/
static void TickTimers(time_t ctime = Anope::CurTime);
static void TickTimers();
/** Deletes all timers owned by the given module
*/