From: Peter van Dijk Date: Wed, 10 Jul 2019 10:36:56 +0000 (+0200) Subject: pdnsutil: remove unused humanTime function X-Git-Tag: auth-4.2.0-rc3~14^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F8068%2Fhead;p=thirdparty%2Fpdns.git pdnsutil: remove unused humanTime function (cherry picked from commit 85cc3e43d48ac08e23402c46938d3ee92cef3bca) --- diff --git a/pdns/pdnsutil.cc b/pdns/pdnsutil.cc index ed3bf5d3db..8eb3f016db 100644 --- a/pdns/pdnsutil.cc +++ b/pdns/pdnsutil.cc @@ -51,15 +51,6 @@ ArgvMap &arg() return arg; } -string humanTime(time_t t) -{ - char ret[256]; - struct tm tm; - localtime_r(&t, &tm); - strftime(ret, sizeof(ret)-1, "%c", &tm); // %h:%M %Y-%m-%d - return ret; -} - void loadMainConfig(const std::string& configdir) { ::arg().set("config-dir","Location of configuration directory (pdns.conf)")=configdir;