summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2023-02-14 17:42:17 +0100
committerCarlos Garnacho <carlosg@gnome.org>2023-02-14 17:42:17 +0100
commit3232eda863c4ad408447cbc752b9be13686e487a (patch)
treea675fc9698238650910cd77110a30ba4ffe2d185 /plugins
parenta3089cd133c86f8c9421fec946f410711bea56fa (diff)
downloadgnome-settings-daemon-3232eda863c4ad408447cbc752b9be13686e487a.tar.gz
power: Drop unused variable
This variable went unused in commit daaa85d69757.
Diffstat (limited to 'plugins')
-rw-r--r--plugins/power/gsd-power-manager.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/plugins/power/gsd-power-manager.c b/plugins/power/gsd-power-manager.c
index 153df7fe..0263e9f6 100644
--- a/plugins/power/gsd-power-manager.c
+++ b/plugins/power/gsd-power-manager.c
@@ -850,7 +850,6 @@ engine_charge_critical (GsdPowerManager *manager, UpDevice *device)
gchar *message = NULL;
gdouble percentage;
guint battery_level;
- GsdPowerActionType policy;
UpDeviceKind kind;
/* get device properties */
@@ -867,9 +866,6 @@ engine_charge_critical (GsdPowerManager *manager, UpDevice *device)
/* TRANSLATORS: notification title, the battery of this laptop/tablet/phone is critically low, advice on what the user should do */
title = _("Battery Almost Empty");
- /* we have to do different warnings depending on the policy */
- policy = manager_critical_action_get (manager);
-
/* TRANSLATORS: notification body, the battery of this laptop/tablet/phone is critically running low, advice on what the user should do */
message = g_strdup_printf (_("Connect power now"));
} else if (kind == UP_DEVICE_KIND_UPS) {