From 3888b9d914c23c19ee7a8ca19715d661de622425 Mon Sep 17 00:00:00 2001 From: Matt Thirtytwo Date: Sat, 7 Mar 2015 23:13:05 +0100 Subject: [PATCH] function check_for_consolekit2 is not used if !UP_CHECK_VERSION(0, 99, 0) --- src/xfpm-power.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/xfpm-power.c b/src/xfpm-power.c index 967aab4..938e070 100644 --- a/src/xfpm-power.c +++ b/src/xfpm-power.c @@ -169,6 +169,7 @@ static guint signals [LAST_SIGNAL] = { 0 }; G_DEFINE_TYPE (XfpmPower, xfpm_power, G_TYPE_OBJECT) +#if UP_CHECK_VERSION(0, 99, 0) /* This checks if consolekit returns TRUE for either suspend or * hibernate showing support. This means that ConsoleKit2 is running * (and the system is capable of those actions). @@ -201,6 +202,7 @@ check_for_consolekit2 (XfpmPower *power) return FALSE; } +#endif #ifdef ENABLE_POLKIT static void -- 1.7.9.5