From 8cce5cd6e87d2620207536dd473aa2863e50735f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Simon=20D=C3=A9saulniers?= <sim.desaulniers@gmail.com>
Date: Fri, 29 Apr 2016 14:25:06 -0400
Subject: [PATCH] removed commented duplicate utility function

---
 include/opendht/utils.h | 3 +++
 tools/tools_common.h    | 9 ---------
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/include/opendht/utils.h b/include/opendht/utils.h
index 205ac4ef..da56ffe0 100644
--- a/include/opendht/utils.h
+++ b/include/opendht/utils.h
@@ -68,6 +68,9 @@ using duration = clock::duration;
 time_point from_time_t(std::time_t t);
 std::time_t to_time_t(time_point t);
 
+/**
+ * Converts std::chrono::duration to floating-point seconds.
+ */
 template <class DT>
 static double
 print_dt(DT d) {
diff --git a/tools/tools_common.h b/tools/tools_common.h
index 9c64be22..e9cc9362 100644
--- a/tools/tools_common.h
+++ b/tools/tools_common.h
@@ -112,15 +112,6 @@ disableLogging(dht::DhtRunner& dht)
     dht.setLoggers(dht::NOLOG, dht::NOLOG, dht::NOLOG);
 }
 
-/**
- * Converts std::chrono::duration to floating-point seconds.
- */
-/*template <class DT>
-static double
-print_dt(DT d) {
-    return std::chrono::duration_cast<std::chrono::duration<double>>(d).count();
-}*/
-
 /**
  * Split "[host]:port" or "host:port" to pair<"host", "port">.
  */
-- 
GitLab