0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-11-26 00:32:35 +01:00

ircd: Remove internal main_exit callback.

This commit is contained in:
Jason Volk 2018-07-06 00:42:39 -07:00
parent e2edd13a33
commit 712b343017

View file

@ -23,7 +23,6 @@ namespace ircd
ctx::ctx *main_context; // Main program loop
void set_runlevel(const enum runlevel &);
void at_main_exit() noexcept;
void main() noexcept;
}
@ -175,7 +174,6 @@ noexcept try
// transitions to HALT.
const unwind halted{[]
{
at_main_exit();
set_runlevel(runlevel::HALT);
}};
@ -238,17 +236,6 @@ catch(...)
};
}
void
ircd::at_main_exit()
noexcept
{
strand->post([]
{
delete strand;
strand = nullptr;
});
}
/// IRCd uptime in seconds
ircd::seconds
ircd::uptime()