[glib] gio: remove precondition checks from g_output_stream_printf()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gio: remove precondition checks from g_output_stream_printf()
- Date: Tue, 26 Nov 2013 22:02:12 +0000 (UTC)
commit 32cfcc87400af61261ecdac29b38962c1de876f1
Author: Michael Natterer <mitch gimp org>
Date: Tue Nov 26 23:00:52 2013 +0100
gio: remove precondition checks from g_output_stream_printf()
because we call g_output_stream_vprintf() which does exactly the same
checks.
gio/goutputstream.c | 5 -----
1 files changed, 0 insertions(+), 5 deletions(-)
---
diff --git a/gio/goutputstream.c b/gio/goutputstream.c
index 059ff35..d54418f 100644
--- a/gio/goutputstream.c
+++ b/gio/goutputstream.c
@@ -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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]