]> granicus.if.org Git - pdns/commitdiff
pdnsutil: remove unused humanTime function
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 10 Jul 2019 10:36:56 +0000 (12:36 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Wed, 10 Jul 2019 10:36:56 +0000 (12:36 +0200)
pdns/pdnsutil.cc

index ed3bf5d3db487856fde77ac258d7317cae9084e6..8eb3f016dbd04b95d7a982c9fba8320042292a38 100644 (file)
@@ -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;