[gnome-settings-daemon] housekeeping: remove unused return value
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] housekeeping: remove unused return value
- Date: Wed, 11 May 2016 17:06:07 +0000 (UTC)
commit 54ed831afb88a3514b51e1990f023451ac341dc8
Author: Cosimo Cecchi <cosimo endlessm com>
Date: Tue May 10 14:21:58 2016 -0700
housekeeping: remove unused return value
https://bugzilla.gnome.org/show_bug.cgi?id=766249
plugins/housekeeping/gsd-disk-space.c | 11 ++++-------
1 files changed, 4 insertions(+), 7 deletions(-)
---
diff --git a/plugins/housekeeping/gsd-disk-space.c b/plugins/housekeeping/gsd-disk-space.c
index 7e7dc19..e71df05 100644
--- a/plugins/housekeeping/gsd-disk-space.c
+++ b/plugins/housekeeping/gsd-disk-space.c
@@ -554,7 +554,7 @@ on_notification_closed (NotifyNotification *n)
notification = NULL;
}
-static gboolean
+static void
ldsm_notify_for_mount (LdsmMountInfo *mount,
gboolean multiple_volumes,
gboolean other_usable_volumes)
@@ -563,7 +563,6 @@ ldsm_notify_for_mount (LdsmMountInfo *mount,
gint64 free_space;
gboolean has_trash;
gboolean has_disk_analyzer;
- gboolean retval = TRUE;
gchar *path;
char *free_space_str;
char *summary;
@@ -571,7 +570,7 @@ ldsm_notify_for_mount (LdsmMountInfo *mount,
/* Don't show a notice if one is already displayed */
if (notification != NULL)
- return retval;
+ return;
name = g_unix_mount_guess_name (mount->mount);
free_space = (gint64) mount->buf.f_frsize * (gint64) mount->buf.f_bavail;
@@ -650,8 +649,6 @@ ldsm_notify_for_mount (LdsmMountInfo *mount,
g_free (name);
g_free (path);
-
- return retval;
}
static gboolean
@@ -770,8 +767,8 @@ ldsm_maybe_warn_mounts (GList *mounts,
}
if (show_notify) {
- if (ldsm_notify_for_mount (mount_info, multiple_volumes, other_usable_volumes))
- done = TRUE;
+ ldsm_notify_for_mount (mount_info, multiple_volumes, other_usable_volumes);
+ done = TRUE;
}
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]