summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/main.cpp b/src/main.cpp
index 33cd9b23f..5a97da7d8 100644
--- a/src/main.cpp
+++ b/src/main.cpp
@@ -51,17 +51,6 @@ time_t Anope::CurTime = time(NULL);
int Anope::CurrentUplink = -1;
-class UpdateTimer : public Timer
-{
- public:
- UpdateTimer(time_t timeout) : Timer(timeout, Anope::CurTime, true) { }
-
- void Tick(time_t) override
- {
- Anope::SaveDatabases();
- }
-};
-
class ExpireTimer : public Timer
{
public:
@@ -73,15 +62,6 @@ class ExpireTimer : public Timer
}
};
-void Anope::SaveDatabases()
-{
- if (Anope::ReadOnly)
- return;
-
- Log(LOG_DEBUG) << "Saving databases";
- EventManager::Get()->Dispatch(&Event::SaveDatabase::OnSaveDatabase);
-}
-
/** The following comes from InspIRCd to get the full path of the Anope executable
*/
static Anope::string GetFullProgDir(const Anope::string &argv0)
@@ -163,7 +143,6 @@ int main(int ac, char **av, char **envp)
/* Set up timers */
time_t last_check = Anope::CurTime;
- UpdateTimer updateTimer(Config->GetBlock("options")->Get<time_t>("updatetimeout", "5m"));
ExpireTimer expireTimer(Config->GetBlock("options")->Get<time_t>("expiretimeout", "30m"));
/*** Main loop. ***/