1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46
|
From ed39ebb5eed395521dcd50ebde4725a5fb334d57 Mon Sep 17 00:00:00 2001
From: Christoph Berg <myon@debian.org>
Date: Sun, 7 Sep 2025 17:41:52 +0200
Subject: [PATCH] lib/precise_time.c: Remove dead code
The last branch of `#if _POSIX_TIMERS` was missing a declaration of
"showme". Since that variable is not used anywhere, just drop it.
---
lib/precise_time.c | 12 ------------
1 file changed, 12 deletions(-)
diff --git a/lib/precise_time.c b/lib/precise_time.c
index 677c516b5..5cc2c4d49 100644
--- a/lib/precise_time.c
+++ b/lib/precise_time.c
@@ -53,15 +53,8 @@ double monotonic_seconds()
#include <time.h>
-static int showme = 0;
-
double monotonic_seconds()
{
- if (showme)
- {
- showme = 0;
- }
-
struct timespec time;
// Note: Make sure to link with -lrt to define clock_gettime.
@@ -170,11 +163,6 @@ static void __attribute__((constructor)) init_rdtsc_per_sec()
double monotonic_seconds()
{
- if (showme)
- {
- showme = false;
- }
-
return (double) rdtsc() / (double) rdtsc_per_sec;
}
--
2.50.1
|