[gnome-boxes] Revert "util: Add find_usb_device_by_prop()"



commit 89c0a73bd878cd9de755366d3431de0135ed315e
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Apr 24 14:43:56 2015 +0100

    Revert "util: Add find_usb_device_by_prop()"
    
    This reverts commit 97f79f6342c77bdcf4aeb8cee6091ba12163508f.
    
    This was only needed by 4296699 and we just reverted that.

 src/util-app.vala |   11 +----------
 1 files changed, 1 insertions(+), 10 deletions(-)
---
diff --git a/src/util-app.vala b/src/util-app.vala
index 8f8d4a7..5fff6ac 100644
--- a/src/util-app.vala
+++ b/src/util-app.vala
@@ -67,18 +67,9 @@ namespace Boxes {
         container.remove (widget);
     }
 
-    public Osinfo.Device? find_usb_device_by_prop (Osinfo.DeviceList devices, string prop_name, string 
prop_value) {
-        return find_device_by_prop (devices, prop_name, prop_value, "usb");
-    }
-
-    public Osinfo.Device? find_device_by_prop (Osinfo.DeviceList devices,
-                                               string            prop_name,
-                                               string            prop_value,
-                                               string?           bus_type = null) {
+    public Osinfo.Device? find_device_by_prop (Osinfo.DeviceList devices, string prop_name, string 
prop_value) {
         var filter = new Osinfo.Filter ();
         filter.add_constraint (prop_name, prop_value);
-        if (bus_type != null)
-            filter.add_constraint (Osinfo.DEVICE_PROP_BUS_TYPE, bus_type);
 
         var filtered = (devices as Osinfo.List).new_filtered (filter);
         if (filtered.get_length () > 0)


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