From d35a363e2c008d050b92cfb50dee21d382438600 Mon Sep 17 00:00:00 2001 From: Szymon Janc Date: Tue, 9 Oct 2012 14:12:02 +0200 Subject: device: Remove not used device_set_class function With mgmt interface CoD cannot change as it is only received in EIR when device is discovered or connected. Was only used in btd_event_remote_class which is now removed. --- src/device.c | 12 ------------ src/device.h | 1 - 2 files changed, 13 deletions(-) (limited to 'src') diff --git a/src/device.c b/src/device.c index e94b2227..71bfea56 100644 --- a/src/device.c +++ b/src/device.c @@ -3475,18 +3475,6 @@ void btd_device_unref(struct btd_device *device) g_free(path); } -void device_set_class(struct btd_device *device, uint32_t value) -{ - const char *icon = class_to_icon(value); - - g_dbus_emit_property_changed(btd_get_dbus_connection(), device->path, - DEVICE_INTERFACE, "Class"); - - if (icon) - g_dbus_emit_property_changed(btd_get_dbus_connection(), - device->path, DEVICE_INTERFACE, "Icon"); -} - int device_get_appearance(struct btd_device *device, uint16_t *value) { uint16_t app; diff --git a/src/device.h b/src/device.h index d23f40d0..46cecb4a 100644 --- a/src/device.h +++ b/src/device.h @@ -102,7 +102,6 @@ guint device_add_disconnect_watch(struct btd_device *device, disconnect_watch watch, void *user_data, GDestroyNotify destroy); void device_remove_disconnect_watch(struct btd_device *device, guint id); -void device_set_class(struct btd_device *device, uint32_t value); int device_get_appearance(struct btd_device *device, uint16_t *value); void device_set_appearance(struct btd_device *device, uint16_t value); -- cgit v1.2.3