[gtk/image-loading] !fixup can't fail
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/image-loading] !fixup can't fail
- Date: Tue, 14 Sep 2021 00:46:51 +0000 (UTC)
commit 40d81f5959b5ec7aa332372a3c1a3f08acac04fe
Author: Benjamin Otte <otte redhat com>
Date: Tue Sep 14 02:30:17 2021 +0200
!fixup can't fail
gdk/gdktexture.c | 3 ---
1 file changed, 3 deletions(-)
---
diff --git a/gdk/gdktexture.c b/gdk/gdktexture.c
index 6adfd39e13..0e3943100e 100644
--- a/gdk/gdktexture.c
+++ b/gdk/gdktexture.c
@@ -684,9 +684,6 @@ gdk_texture_save_to_png (GdkTexture *texture,
g_return_val_if_fail (filename != NULL, FALSE);
bytes = gdk_save_png (texture);
- if (!bytes)
- return FALSE;
-
result = g_file_set_contents (filename,
g_bytes_get_data (bytes, NULL),
g_bytes_get_size (bytes),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]