diff --git a/profiles/audio/a2dp.c b/profiles/audio/a2dp.c
index 177f653..e23c016 100644
--- a/profiles/audio/a2dp.c
+++ b/profiles/audio/a2dp.c
return sep->locked;
}
-static int stream_cmp(gconstpointer data, gconstpointer user_data)
-{
- const struct a2dp_sep *sep = data;
- const struct avdtp_stream *stream = user_data;
-
- return (sep->stream != stream);
-}
-
-struct a2dp_sep *a2dp_get_sep(struct avdtp *session,
- struct avdtp_stream *stream)
-{
- struct a2dp_server *server;
- bdaddr_t src, dst;
- GSList *l;
-
- avdtp_get_peers(session, &src, &dst);
-
- for (l = servers; l; l = l->next) {
- server = l->data;
-
- if (bacmp(&src, &server->src) == 0)
- break;
- }
-
- if (!l)
- return NULL;
-
- l = g_slist_find_custom(server->sources, stream, stream_cmp);
- if (l)
- return l->data;
-
- l = g_slist_find_custom(server->sinks, stream, stream_cmp);
- if (l)
- return l->data;
-
- return NULL;
-}
-
struct avdtp_stream *a2dp_sep_get_stream(struct a2dp_sep *sep)
{
return sep->stream;
diff --git a/profiles/audio/a2dp.h b/profiles/audio/a2dp.h
index ded1060..6ad809c 100644
--- a/profiles/audio/a2dp.h
+++ b/profiles/audio/a2dp.h
gboolean a2dp_sep_get_lock(struct a2dp_sep *sep);
gboolean a2dp_sep_is_playing(struct a2dp_sep *sep);
struct avdtp_stream *a2dp_sep_get_stream(struct a2dp_sep *sep);
-struct a2dp_sep *a2dp_get_sep(struct avdtp *session,
- struct avdtp_stream *stream);