summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree/main.cpp
diff options
context:
space:
mode:
authorPeter Powell <petpow@saberuk.com>2019-05-14 00:51:31 +0100
committerPeter Powell <petpow@saberuk.com>2019-05-14 00:58:52 +0100
commit7a58d288d0fd005795a8ac6908fc91bf350174d6 (patch)
tree42254e919716ea7723ca5a35ae10d0f8b23c46a0 /src/modules/m_spanningtree/main.cpp
parent510f747854b17f64c2f597a4bd5743763fb518f4 (diff)
Replace ModuleSpanningTree::TimeToStr with InspIRCd::DurationStr.
Diffstat (limited to 'src/modules/m_spanningtree/main.cpp')
-rw-r--r--src/modules/m_spanningtree/main.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 8b24b1e22..44271473c 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -145,20 +145,6 @@ void ModuleSpanningTree::HandleLinks(const CommandBase::Params& parameters, User
user->WriteNumeric(RPL_ENDOFLINKS, '*', "End of /LINKS list.");
}
-std::string ModuleSpanningTree::TimeToStr(time_t secs)
-{
- time_t mins_up = secs / 60;
- time_t hours_up = mins_up / 60;
- time_t days_up = hours_up / 24;
- secs = secs % 60;
- mins_up = mins_up % 60;
- hours_up = hours_up % 24;
- return ((days_up ? (ConvToStr(days_up) + "d") : "")
- + (hours_up ? (ConvToStr(hours_up) + "h") : "")
- + (mins_up ? (ConvToStr(mins_up) + "m") : "")
- + ConvToStr(secs) + "s");
-}
-
void ModuleSpanningTree::ConnectServer(Autoconnect* a, bool on_timer)
{
if (!a)