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



commit 05ed13fa0b41ba773a3287cdce21f5f0eff5ab26
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]