aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2021-06-20 19:24:55 +0200
committerFurkan Sahin <furkan-dev@proton.me>2021-06-20 19:24:55 +0200
commit3f7fee92b139d91b067184203b14e99f33a564c3 (patch)
tree59a519c26f1803c168bbf8154e72e1c9a95e2fc1 /common
parent2a9a104a1dee9336824bf4817905d594e0619a42 (diff)
input: Move get_current_time_msec in from util
get_current_time_msec is only used in cursor.c, so we can move it in and make it static. This is primarily intended to avoid a symbol collision with wlroots, which we unfortunately do not have a good solution for yet.
Diffstat (limited to 'common')
-rw-r--r--common/util.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/common/util.c b/common/util.c
index 5ea94f48..199f3ee1 100644
--- a/common/util.c
+++ b/common/util.c
@@ -10,12 +10,6 @@
#include "log.h"
#include "util.h"
-uint32_t get_current_time_msec(void) {
- struct timespec now;
- clock_gettime(CLOCK_MONOTONIC, &now);
- return now.tv_sec * 1000 + now.tv_nsec / 1000000;
-}
-
int wrap(int i, int max) {
return ((i % max) + max) % max;
}