From e8e8d282b2f8c99a5532c39530ab88585715fb65 Mon Sep 17 00:00:00 2001 From: Jason Volk Date: Fri, 17 Aug 2018 10:55:32 -0700 Subject: [PATCH] ircd: Minor cleanup. --- ircd/ircd.cc | 44 ++++++++++++++++++++++++++++---------------- 1 file changed, 28 insertions(+), 16 deletions(-) diff --git a/ircd/ircd.cc b/ircd/ircd.cc index 6a1ded9c3..6587a478b 100644 --- a/ircd/ircd.cc +++ b/ircd/ircd.cc @@ -242,22 +242,9 @@ ircd::uptime() return seconds(ircd::time() - info::startup_time); } -template<> -decltype(ircd::runlevel_changed::list) -ircd::util::instance_list::list -{}; - -decltype(ircd::runlevel_changed::dock) -ircd::runlevel_changed::dock -{}; - -ircd::runlevel_changed::runlevel_changed(handler function) -:handler{std::move(function)} -{} - -ircd::runlevel_changed::~runlevel_changed() -noexcept -{} +// +// runlevel +// /// Sets the runlevel of IRCd and notifies users. This should never be called /// manually/directly, as it doesn't trigger a runlevel change itself, it just @@ -333,3 +320,28 @@ ircd::reflect(const enum runlevel &level) return "??????"; } + +// +// runlevel_changed +// + +template<> +decltype(ircd::runlevel_changed::list) +ircd::util::instance_list::list +{}; + +decltype(ircd::runlevel_changed::dock) +ircd::runlevel_changed::dock +{}; + +// +// runlevel_changed::runlevel_changed +// + +ircd::runlevel_changed::runlevel_changed(handler function) +:handler{std::move(function)} +{} + +ircd::runlevel_changed::~runlevel_changed() +noexcept +{}