From 67ac537c5e034295f1ddddd1e9503bafe4798a67 Mon Sep 17 00:00:00 2001 From: Zygo Blaxell Date: Fri, 26 Jan 2018 00:13:21 -0500 Subject: [PATCH] time: drop unused Timer methods Timer::set(double d) in particular seems...wrong. Nothing uses them, so don't bother to fix them. Signed-off-by: Zygo Blaxell --- include/crucible/time.h | 2 -- lib/time.cc | 12 ------------ 2 files changed, 14 deletions(-) diff --git a/include/crucible/time.h b/include/crucible/time.h index 024cf76..b806a7d 100644 --- a/include/crucible/time.h +++ b/include/crucible/time.h @@ -19,8 +19,6 @@ namespace crucible { double age() const; double report(int precision = 1000) const; void reset(); - void set(const chrono::high_resolution_clock::time_point &start); - void set(double delta); double lap(); bool operator<(double d) const; bool operator>(double d) const; diff --git a/lib/time.cc b/lib/time.cc index 7e19343..8cc783b 100644 --- a/lib/time.cc +++ b/lib/time.cc @@ -59,18 +59,6 @@ namespace crucible { m_start = chrono::high_resolution_clock::now(); } - void - Timer::set(const chrono::high_resolution_clock::time_point &start) - { - m_start = start; - } - - void - Timer::set(double delta) - { - m_start += chrono::duration_cast(chrono::duration(delta)); - } - double Timer::lap() {