[gnome-boxes/shut-build-warnings: 6/6] libvirt-machine-properties: Drop unreachable catch clause



commit 6a3c8013558e8f6980b78d6c8e3d64d9ede5626d
Author: Felipe Borges <felipeborges gnome org>
Date:   Wed May 6 13:45:02 2020 +0200

    libvirt-machine-properties: Drop unreachable catch clause

 src/libvirt-machine-properties.vala | 10 +++-------
 1 file changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/src/libvirt-machine-properties.vala b/src/libvirt-machine-properties.vala
index f21c070a..eabdaa4d 100644
--- a/src/libvirt-machine-properties.vala
+++ b/src/libvirt-machine-properties.vala
@@ -772,13 +772,9 @@ private void add_3d_acceleration_property (ref List<Boxes.Property> list) {
                                BindingFlags.BIDIRECTIONAL | BindingFlags.SYNC_CREATE);
 
         machine.supports_accel3d.begin ((source, result) => {
-            try {
-                if (!machine.supports_accel3d.end (result)) {
-                    property.label.destroy ();
-                    property.widget.destroy ();
-                }
-            } catch (GLib.Error error) {
-                warning (error.message);
+            if (!machine.supports_accel3d.end (result)) {
+                property.label.destroy ();
+                property.widget.destroy ();
             }
         });
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]