summaryrefslogtreecommitdiff
path: root/libupower-glib
diff options
context:
space:
mode:
authorBastien Nocera <hadess@hadess.net>2013-10-10 15:56:49 +0200
committerBastien Nocera <hadess@hadess.net>2013-10-14 10:42:55 +0200
commitc590354d0ace5610fbdaef918870f8d3c2e5adc6 (patch)
tree9686d27e76141f8f6bfcac1c3be95e9a291867d7 /libupower-glib
parent65c84120f903b50a2894b3b823932aba8dae8444 (diff)
downloadupower-c590354d0ace5610fbdaef918870f8d3c2e5adc6.tar.gz
lib: No need to set private members to NULL
GObject already makes sure of that for us.
Diffstat (limited to 'libupower-glib')
-rw-r--r--libupower-glib/up-client.c2
-rw-r--r--libupower-glib/up-device.c3
-rw-r--r--libupower-glib/up-history-item.c3
-rw-r--r--libupower-glib/up-stats-item.c2
-rw-r--r--libupower-glib/up-wakeup-item.c6
-rw-r--r--libupower-glib/up-wakeups.c2
6 files changed, 0 insertions, 18 deletions
diff --git a/libupower-glib/up-client.c b/libupower-glib/up-client.c
index 5f141b7..98505db 100644
--- a/libupower-glib/up-client.c
+++ b/libupower-glib/up-client.c
@@ -571,8 +571,6 @@ up_client_init (UpClient *client)
client->priv = UP_CLIENT_GET_PRIVATE (client);
client->priv->array = g_ptr_array_new_with_free_func ((GDestroyNotify) g_object_unref);
- client->priv->have_properties = FALSE;
- client->priv->done_enumerate = FALSE;
/* connect to main interface */
client->priv->proxy = up_client_glue_proxy_new_for_bus_sync (G_BUS_TYPE_SYSTEM,
diff --git a/libupower-glib/up-device.c b/libupower-glib/up-device.c
index 1c346da..022d9ed 100644
--- a/libupower-glib/up-device.c
+++ b/libupower-glib/up-device.c
@@ -1294,9 +1294,6 @@ static void
up_device_init (UpDevice *device)
{
device->priv = UP_DEVICE_GET_PRIVATE (device);
- device->priv->object_path = NULL;
- device->priv->proxy_device = NULL;
- device->priv->proxy_props = NULL;
}
/*
diff --git a/libupower-glib/up-history-item.c b/libupower-glib/up-history-item.c
index e158e1a..bb8e4e4 100644
--- a/libupower-glib/up-history-item.c
+++ b/libupower-glib/up-history-item.c
@@ -333,9 +333,6 @@ static void
up_history_item_init (UpHistoryItem *history_item)
{
history_item->priv = UP_HISTORY_ITEM_GET_PRIVATE (history_item);
- history_item->priv->value = 0.0f;
- history_item->priv->time = 0;
- history_item->priv->state = UP_DEVICE_STATE_UNKNOWN;
}
/**
diff --git a/libupower-glib/up-stats-item.c b/libupower-glib/up-stats-item.c
index 859ed71..afa9f7e 100644
--- a/libupower-glib/up-stats-item.c
+++ b/libupower-glib/up-stats-item.c
@@ -206,8 +206,6 @@ static void
up_stats_item_init (UpStatsItem *stats_item)
{
stats_item->priv = UP_STATS_ITEM_GET_PRIVATE (stats_item);
- stats_item->priv->value = 0.0f;
- stats_item->priv->accuracy = 0.0f;
}
/**
diff --git a/libupower-glib/up-wakeup-item.c b/libupower-glib/up-wakeup-item.c
index 0bdd458..c11f7a7 100644
--- a/libupower-glib/up-wakeup-item.c
+++ b/libupower-glib/up-wakeup-item.c
@@ -422,12 +422,6 @@ static void
up_wakeup_item_init (UpWakeupItem *wakeup_item)
{
wakeup_item->priv = UP_WAKEUP_ITEM_GET_PRIVATE (wakeup_item);
- wakeup_item->priv->is_userspace = FALSE;
- wakeup_item->priv->id = 0;
- wakeup_item->priv->old = 0;
- wakeup_item->priv->value = 0.0f;
- wakeup_item->priv->cmdline = NULL;
- wakeup_item->priv->details = NULL;
}
/**
diff --git a/libupower-glib/up-wakeups.c b/libupower-glib/up-wakeups.c
index e3d3475..3c59ab8 100644
--- a/libupower-glib/up-wakeups.c
+++ b/libupower-glib/up-wakeups.c
@@ -320,8 +320,6 @@ up_wakeups_init (UpWakeups *wakeups)
GError *error = NULL;
wakeups->priv = UP_WAKEUPS_GET_PRIVATE (wakeups);
- wakeups->priv->has_capability = FALSE;
- wakeups->priv->have_properties = FALSE;
/* get on the bus */
wakeups->priv->bus = dbus_g_bus_get (DBUS_BUS_SYSTEM, &error);