gio: remove precondition checks from g_output_stream_printf()

because we call g_output_stream_vprintf() which does exactly the same
checks.
This commit is contained in:
Michael Natterer 2013-11-26 23:00:52 +01:00
parent c9cfa7d1d5
commit 32cfcc8740

View File

@ -329,11 +329,6 @@ g_output_stream_printf (GOutputStream *stream,
va_list args;
gboolean success;
g_return_val_if_fail (G_IS_OUTPUT_STREAM (stream), FALSE);
g_return_val_if_fail (cancellable == NULL || G_IS_CANCELLABLE (stream), FALSE);
g_return_val_if_fail (error == NULL || *error == NULL, FALSE);
g_return_val_if_fail (format != NULL, FALSE);
va_start (args, format);
success = g_output_stream_vprintf (stream, bytes_written, cancellable,
error, format, args);