[Spice-devel] [spice-gtk v2 06/13] win-usb-dev: remove unused procedure
Yuri Benditovich
yuri.benditovich at daynix.com
Tue Mar 19 05:56:01 UTC 2019
Remove unused g_udev_device_get_sysfs_attr.
Signed-off-by: Yuri Benditovich <yuri.benditovich at daynix.com>
---
src/win-usb-dev.c | 18 ------------------
src/win-usb-dev.h | 1 -
2 files changed, 19 deletions(-)
diff --git a/src/win-usb-dev.c b/src/win-usb-dev.c
index 52e61a8..6273cbe 100644
--- a/src/win-usb-dev.c
+++ b/src/win-usb-dev.c
@@ -521,24 +521,6 @@ const gchar *g_udev_device_get_property(GUdevDevice *udev, const gchar *property
return NULL;
}
-const gchar *g_udev_device_get_sysfs_attr(GUdevDevice *udev, const gchar *attr)
-{
- GUdevDeviceInfo* udevinfo;
-
- g_return_val_if_fail(G_UDEV_DEVICE(udev), NULL);
- g_return_val_if_fail(attr != NULL, NULL);
-
- udevinfo = udev->priv->udevinfo;
- g_return_val_if_fail(udevinfo != NULL, NULL);
-
-
- if (g_strcmp0(attr, "bDeviceClass") == 0) {
- return udevinfo->sclass;
- }
- g_warn_if_reached();
- return NULL;
-}
-
#ifdef DEBUG_GUDEV_DEVICE_LISTS
static void g_udev_device_print_list(GList *l, const gchar *msg)
{
diff --git a/src/win-usb-dev.h b/src/win-usb-dev.h
index f3c7466..b7b7eda 100644
--- a/src/win-usb-dev.h
+++ b/src/win-usb-dev.h
@@ -85,7 +85,6 @@ GList *g_udev_client_query_by_subsystem(GUdevClient *client, const gchar *subsys
GType g_udev_device_get_type(void) G_GNUC_CONST;
const gchar *g_udev_device_get_property(GUdevDevice *udev, const gchar *property);
-const gchar *g_udev_device_get_sysfs_attr(GUdevDevice *udev, const gchar *attr);
GQuark g_udev_client_error_quark(void);
#define G_UDEV_CLIENT_ERROR g_udev_client_error_quark()
--
2.17.1
More information about the Spice-devel
mailing list