diff options
| author | Sadie Powell <sadie@witchery.services> | 2024-02-11 17:53:32 +0000 |
|---|---|---|
| committer | Sadie Powell <sadie@witchery.services> | 2024-02-11 17:56:35 +0000 |
| commit | 30b9f127113cc715cf90f87a298572b8a73b6788 (patch) | |
| tree | 9c3ceafda20a3d370425f38086e8b3fc7e7698b7 /include | |
| parent | 5337326cc976612657677c41d7a1d7bb1e671968 (diff) | |
Remove the now parameter from the Timer class.
This was never actually changed from the default.
Diffstat (limited to 'include')
| -rw-r--r-- | include/modules/dns.h | 10 | ||||
| -rw-r--r-- | include/timers.h | 15 |
2 files changed, 10 insertions, 15 deletions
diff --git a/include/modules/dns.h b/include/modules/dns.h index 801b5b2f0..898afe511 100644 --- a/include/modules/dns.h +++ b/include/modules/dns.h @@ -146,8 +146,14 @@ namespace DNS /* Creator of this request */ Module *creator; - Request(Manager *mgr, Module *c, const Anope::string &addr, QueryType qt, bool cache = false) : Timer(0), Question(addr, qt), manager(mgr), - use_cache(cache), creator(c) { } + Request(Manager *mgr, Module *c, const Anope::string &addr, QueryType qt, bool cache = false) + : Timer(0) + , Question(addr, qt) + , manager(mgr) + , use_cache(cache) + , creator(c) + { + } virtual ~Request() { diff --git a/include/timers.h b/include/timers.h index 456666535..19e5290e9 100644 --- a/include/timers.h +++ b/include/timers.h @@ -20,10 +20,6 @@ private: */ Module *owner; - /** The time this was created - */ - time_t settime; - /** The triggering time */ time_t trigger; @@ -39,18 +35,16 @@ private: public: /** Constructor, initializes the triggering time * @param time_from_now The number of seconds from now to trigger the timer - * @param now The time now * @param repeating Repeat this timer every time_from_now if this is true */ - Timer(long time_from_now, time_t now = Anope::CurTime, bool repeating = false); + Timer(long time_from_now, bool repeating = false); /** Constructor, initializes the triggering time * @param creator The creator of the timer * @param time_from_now The number of seconds from now to trigger the timer - * @param now The time now * @param repeating Repeat this timer every time_from_now if this is true */ - Timer(Module *creator, long time_from_now, time_t now = Anope::CurTime, bool repeating = false); + Timer(Module *creator, long time_from_now, bool repeating = false); /** Destructor, removes the timer from the list */ @@ -81,11 +75,6 @@ public: */ long GetSecs() const; - /** Returns the time this timer was created - * @return The time this timer was created - */ - time_t GetSetTime() const; - /** Returns the owner of this timer, if any * @return The owner of the timer */ |
