summaryrefslogtreecommitdiff
path: root/src/shared
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2022-09-16 21:50:58 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2022-09-16 21:53:28 +0900
commit3e911a0d0e867731fae28c0e777234c2882f263b (patch)
treed790cf5c52380939d8e634335c15f0736225c270 /src/shared
parent9341f41801a1d984e0bd04d6353d0161875d2673 (diff)
downloadsystemd-3e911a0d0e867731fae28c0e777234c2882f263b.tar.gz
pid1: drop redundant DBus properties
Follow-up for 10f3f4ed016b9fe92ca3d093fcfaed8278e69220. We already have RuntimeWatchdogUSec or friends. Let's not introduce redundant properties. Also, drop the const qualifier for WatchdogLastPingTimestamp, as they are actually not constant.
Diffstat (limited to 'src/shared')
-rw-r--r--src/shared/watchdog.c8
-rw-r--r--src/shared/watchdog.h2
2 files changed, 0 insertions, 10 deletions
diff --git a/src/shared/watchdog.c b/src/shared/watchdog.c
index 93939654b2..0031e13f64 100644
--- a/src/shared/watchdog.c
+++ b/src/shared/watchdog.c
@@ -119,10 +119,6 @@ static int watchdog_set_enable(bool enable) {
return 0;
}
-usec_t watchdog_get_timeout(void) {
- return watchdog_timeout;
-}
-
static int watchdog_read_timeout(void) {
int sec = 0;
@@ -154,10 +150,6 @@ static int watchdog_set_timeout(void) {
return 0;
}
-usec_t watchdog_get_pretimeout(void) {
- return watchdog_pretimeout;
-}
-
static int watchdog_read_pretimeout(void) {
int sec = 0;
diff --git a/src/shared/watchdog.h b/src/shared/watchdog.h
index 1242fbc4d9..a0a80efc97 100644
--- a/src/shared/watchdog.h
+++ b/src/shared/watchdog.h
@@ -7,8 +7,6 @@
#include "util.h"
const char *watchdog_get_device(void);
-usec_t watchdog_get_timeout(void);
-usec_t watchdog_get_pretimeout(void);
usec_t watchdog_get_last_ping(clockid_t clock);
int watchdog_set_device(const char *path);