From 26831a8e208f526a9884e4ee8fa1491d04a7ae0b Mon Sep 17 00:00:00 2001 From: Daniel Fritzsche Date: Wed, 21 Jun 2017 17:00:05 +0200 Subject: [PATCH] remove_ambiguous_get_time --- src/rofl/common/ctimespec.hpp | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/src/rofl/common/ctimespec.hpp b/src/rofl/common/ctimespec.hpp index 9d0c64f0..ed0a055c 100644 --- a/src/rofl/common/ctimespec.hpp +++ b/src/rofl/common/ctimespec.hpp @@ -203,28 +203,6 @@ class ctimespec { */ const struct timespec &get_tspec() const { return tspec; }; - /** - * - */ - ctimespec &get_time() { - // get current time - if (clock_gettime(clk_id.get_clkid(), &tspec) < 0) { - switch (errno) { - case EFAULT: { - throw eTimeSpecSysCall("ctimespec::now() invalid struct timespec"); - } break; - case EINVAL: { - throw eTimeSpecSysCall("ctimespec::now() clockid_t is invalid"); - } break; - default: { - throw eTimeSpecSysCall("ctimespec::now() unknown internal error on " - "syscall clock_gettime()"); - }; - } - } - return *this; - }; - /** * */