summaryrefslogtreecommitdiff
path: root/attrib/gattrib.c
diff options
context:
space:
mode:
authorMichael Janssen <jamuraa@chromium.org>2014-10-31 11:14:53 -0700
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2014-11-03 17:17:02 +0200
commit002070cf4c87604d9813c1329cc93e3f74940dd6 (patch)
treeb6d2dc4be7f24b53074410a82a3d517a80e85480 /attrib/gattrib.c
parent566488510e0e8216a26e93c3422a36f560c380e1 (diff)
downloadbluez-002070cf4c87604d9813c1329cc93e3f74940dd6.tar.gz
attrib: remove g_attrib_is_encrypted
This function is only used in one place and encryption is the responsibility of the channel, not the attribute.
Diffstat (limited to 'attrib/gattrib.c')
-rw-r--r--attrib/gattrib.c12
1 files changed, 0 insertions, 12 deletions
diff --git a/attrib/gattrib.c b/attrib/gattrib.c
index a6511a2ab..a65d1ca22 100644
--- a/attrib/gattrib.c
+++ b/attrib/gattrib.c
@@ -690,18 +690,6 @@ static int event_cmp_by_id(gconstpointer a, gconstpointer b)
return evt->id - id;
}
-gboolean g_attrib_is_encrypted(GAttrib *attrib)
-{
- BtIOSecLevel sec_level;
-
- if (!bt_io_get(attrib->io, NULL,
- BT_IO_OPT_SEC_LEVEL, &sec_level,
- BT_IO_OPT_INVALID))
- return FALSE;
-
- return sec_level > BT_IO_SEC_LOW;
-}
-
gboolean g_attrib_unregister(GAttrib *attrib, guint id)
{
struct event *evt;