From b26ab9ce5fd556d5c9473e4ea0698dbf27d1007e Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Mon, 20 Jun 2016 22:16:55 +0200 Subject: [PATCH] task: Removed obsolete timer util --- include/utils/timer.hpp | 9 --------- src/CMakeLists.txt | 1 - src/lemonbuddy.cpp | 1 - src/modules/network.cpp | 1 - src/utils/timer.cpp | 16 ---------------- 5 files changed, 28 deletions(-) delete mode 100644 include/utils/timer.hpp delete mode 100644 src/utils/timer.cpp diff --git a/include/utils/timer.hpp b/include/utils/timer.hpp deleted file mode 100644 index 35b2b9f4..00000000 --- a/include/utils/timer.hpp +++ /dev/null @@ -1,9 +0,0 @@ -#if 0 -#pragma once - -namespace timer -{ - // unsigned int seconds_to_microseconds(float seconds); - // void sleep(float seconds); -} -#endif diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6a95a66d..9967d678 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -51,7 +51,6 @@ set(SOURCE_FILES "src/utils/io.cpp" "src/utils/proc.cpp" "src/utils/string.cpp" - "src/utils/timer.cpp" "src/utils/xlib.cpp" "src/bar.cpp" "src/eventloop.cpp" diff --git a/src/lemonbuddy.cpp b/src/lemonbuddy.cpp index ea295cf7..9be22c70 100644 --- a/src/lemonbuddy.cpp +++ b/src/lemonbuddy.cpp @@ -17,7 +17,6 @@ #include "utils/macros.hpp" #include "utils/proc.hpp" #include "utils/string.hpp" -#include "utils/timer.hpp" #include "utils/xlib.hpp" /** diff --git a/src/modules/network.cpp b/src/modules/network.cpp index ab173353..716cc602 100644 --- a/src/modules/network.cpp +++ b/src/modules/network.cpp @@ -6,7 +6,6 @@ #include "utils/config.hpp" #include "utils/io.hpp" #include "utils/proc.hpp" -#include "utils/timer.hpp" using namespace modules; diff --git a/src/utils/timer.cpp b/src/utils/timer.cpp deleted file mode 100644 index f60cd981..00000000 --- a/src/utils/timer.cpp +++ /dev/null @@ -1,16 +0,0 @@ -#if 0 -#include - -#include "utils/timer.hpp" - -namespace timer -{ - unsigned int seconds_to_microseconds(float seconds) { - return seconds * 1000000; - } - - void sleep(float seconds) { - usleep(seconds_to_microseconds(seconds)); - } -} -#endif