From: Peter van Dijk Date: Wed, 10 Jul 2019 10:36:56 +0000 (+0200) Subject: pdnsutil: remove unused humanTime function X-Git-Tag: dnsdist-1.4.0-rc1~53^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F8053%2Fhead;p=thirdparty%2Fpdns.git pdnsutil: remove unused humanTime function --- 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;