lib: No need to set private members to NULL

GObject already makes sure of that for us.
This commit is contained in:
Bastien Nocera 2013-10-10 15:56:49 +02:00
parent 65c84120f9
commit c590354d0a
6 changed files with 0 additions and 18 deletions

View file

@ -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,

View file

@ -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;
}
/*

View file

@ -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;
}
/**

View file

@ -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;
}
/**

View file

@ -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;
}
/**

View file

@ -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);