restart: Don't pass error as unused user data

We passed the pointer to a GError * as user data on an async I/O call.
The callback function didn't make use of it, so it was never written to,
thus remained NULL, thus was dead code. Remove it.

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2446>
This commit is contained in:
Jonas Ådahl 2022-05-30 23:03:58 +02:00 committed by Marge Bot
parent 1cf2940fd0
commit 81860229ba

View File

@ -174,13 +174,7 @@ meta_restart (const char *message)
g_data_input_stream_read_line_async (data_stream, G_PRIORITY_DEFAULT,
NULL, restart_helper_read_line_callback,
&error);
if (error != NULL)
{
meta_warning ("Failed to read from restart helper: %s", error->message);
g_object_unref (data_stream);
goto error;
}
NULL);
return;