From 00229fe48f7577946bb95dd2b0ca96d8e6447f94 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 24 Oct 2015 23:30:40 +0200 Subject: util: move logind_running() to login-util.[ch] --- src/basic/util.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/basic/util.h') diff --git a/src/basic/util.h b/src/basic/util.h index 7d1e4e0f62..d1da9ce106 100644 --- a/src/basic/util.h +++ b/src/basic/util.h @@ -617,10 +617,6 @@ static inline unsigned log2u_round_up(unsigned x) { return log2u(x - 1) + 1; } -static inline bool logind_running(void) { - return access("/run/systemd/seats/", F_OK) >= 0; -} - #define DECIMAL_STR_WIDTH(x) \ ({ \ typeof(x) _x_ = (x); \ -- cgit v1.2.3-54-g00ecf