diff options
author | Ted Gould <ted@canonical.com> | 2009-11-03 10:51:12 -0600 |
---|---|---|
committer | Ted Gould <ted@canonical.com> | 2009-11-03 10:51:12 -0600 |
commit | cd7ec27751fbaaae47fc1ddf560f88e5921ce80d (patch) | |
tree | b3c848798228e96f2d2d6ab6b5d865e0a58072d2 /src/libcustomindicator | |
parent | 9c868b9b66fa67484dff603f20ce852180e7f77c (diff) | |
download | libayatana-appindicator-cd7ec27751fbaaae47fc1ddf560f88e5921ce80d.tar.gz libayatana-appindicator-cd7ec27751fbaaae47fc1ddf560f88e5921ce80d.tar.bz2 libayatana-appindicator-cd7ec27751fbaaae47fc1ddf560f88e5921ce80d.zip |
Removing the checks on private being NULL when we're already testing the object.
Diffstat (limited to 'src/libcustomindicator')
-rw-r--r-- | src/libcustomindicator/custom-indicator.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/libcustomindicator/custom-indicator.c b/src/libcustomindicator/custom-indicator.c index a4835cc..639d304 100644 --- a/src/libcustomindicator/custom-indicator.c +++ b/src/libcustomindicator/custom-indicator.c @@ -258,7 +258,6 @@ static void custom_indicator_init (CustomIndicator *self) { CustomIndicatorPrivate * priv = CUSTOM_INDICATOR_GET_PRIVATE(self); - g_return_if_fail(priv != NULL); priv->id = NULL; priv->category = CUSTOM_INDICATOR_CATEGORY_OTHER; @@ -293,7 +292,6 @@ custom_indicator_dispose (GObject *object) g_return_if_fail(self != NULL); CustomIndicatorPrivate * priv = CUSTOM_INDICATOR_GET_PRIVATE(self); - g_return_if_fail(priv != NULL); if (priv->status != CUSTOM_INDICATOR_STATUS_PASSIVE) { custom_indicator_set_status(self, CUSTOM_INDICATOR_STATUS_PASSIVE); @@ -324,7 +322,6 @@ custom_indicator_finalize (GObject *object) g_return_if_fail(self != NULL); CustomIndicatorPrivate * priv = CUSTOM_INDICATOR_GET_PRIVATE(self); - g_return_if_fail(priv != NULL); if (priv->status != CUSTOM_INDICATOR_STATUS_PASSIVE) { g_warning("Finalizing Custom Status with the status set to: %d", priv->status); @@ -359,7 +356,6 @@ custom_indicator_set_property (GObject * object, guint prop_id, const GValue * v g_return_if_fail(self != NULL); CustomIndicatorPrivate * priv = CUSTOM_INDICATOR_GET_PRIVATE(self); - g_return_if_fail(priv != NULL); switch (prop_id) { /* *********************** */ @@ -477,7 +473,6 @@ custom_indicator_get_property (GObject * object, guint prop_id, GValue * value, g_return_if_fail(self != NULL); CustomIndicatorPrivate * priv = CUSTOM_INDICATOR_GET_PRIVATE(self); - g_return_if_fail(priv != NULL); switch (prop_id) { /* *********************** */ |