summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSzymon Janc <szymon.janc@tieto.com>2012-10-09 14:12:02 +0200
committerJohan Hedberg <johan.hedberg@intel.com>2012-10-09 18:37:49 +0200
commitd35a363e2c008d050b92cfb50dee21d382438600 (patch)
tree64874ee25ac9eab9fefe7526a0c34666794f3749 /src
parent51b0e53c52fad16e606721024637d21bda415169 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/device.c12
-rw-r--r--src/device.h1
2 files changed, 0 insertions, 13 deletions
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);