summaryrefslogtreecommitdiff
path: root/src/up-wakeups.c
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-11 09:31:57 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-14 10:42:56 +0200
commit91df125e39c5200b87938ad51d28c1174b17bd1d (patch)
treee1285079413ce4202e629dce80a8a3adcd1ae3c4 /src/up-wakeups.c
parent8c83871f10b363c7080afbc4dca8fb7841edf42a (diff)
downloadupower-91df125e39c5200b87938ad51d28c1174b17bd1d.tar.gz
daemon: Remove unneeded reset of priv struct members
It's already done by GObject.
Diffstat (limited to 'src/up-wakeups.c')
-rw-r--r--src/up-wakeups.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/src/up-wakeups.c b/src/up-wakeups.c
index a9037e1..6a883db 100644
--- a/src/up-wakeups.c
+++ b/src/up-wakeups.c
@@ -736,12 +736,6 @@ up_wakeups_init (UpWakeups *wakeups)
wakeups->priv = UP_WAKEUPS_GET_PRIVATE (wakeups);
wakeups->priv->data = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
- wakeups->priv->total_old = 0;
- wakeups->priv->total_ave = 0;
- wakeups->priv->poll_userspace_id = 0;
- wakeups->priv->poll_kernel_id = 0;
- wakeups->priv->has_capability = FALSE;
- wakeups->priv->polling_enabled = FALSE;
wakeups->priv->connection = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);
if (error != NULL) {