summaryrefslogtreecommitdiff
path: root/gio/gunixvolume.c
diff options
context:
space:
mode:
Diffstat (limited to 'gio/gunixvolume.c')
-rw-r--r--gio/gunixvolume.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/gio/gunixvolume.c b/gio/gunixvolume.c
index a3768e11d..b54d1fd6e 100644
--- a/gio/gunixvolume.c
+++ b/gio/gunixvolume.c
@@ -274,7 +274,6 @@ eject_mount_done (GObject *source,
GTask *task = user_data;
GError *error = NULL;
gchar *stderr_str;
- GUnixVolume *unix_volume;
if (!g_subprocess_communicate_utf8_finish (subprocess, result, NULL, &stderr_str, &error))
{
@@ -287,12 +286,8 @@ eject_mount_done (GObject *source,
/* ...but bad exit code */
g_task_return_new_error (task, G_IO_ERROR, G_IO_ERROR_FAILED, "%s", stderr_str);
else
- {
- /* ...and successful exit code */
- unix_volume = G_UNIX_VOLUME (g_task_get_source_object (task));
- _g_unix_volume_monitor_update (G_UNIX_VOLUME_MONITOR (unix_volume->volume_monitor));
- g_task_return_boolean (task, TRUE);
- }
+ /* ...and successful exit code */
+ g_task_return_boolean (task, TRUE);
g_free (stderr_str);
}