Diff between 82b25359c9339cda1df261e51e366db150b09c63 and a174f7b53d7468a91e04796d80d96d1026b5a46c

Changed Files

File Additions Deletions Status
profiles/audio/a2dp.c +0 -38 modified
profiles/audio/a2dp.h +0 -2 modified

Full Patch

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
@@ -1877,44 +1877,6 @@ gboolean a2dp_sep_get_lock(struct a2dp_sep *sep)
 	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
@@ -93,5 +93,3 @@ gboolean a2dp_sep_unlock(struct a2dp_sep *sep, struct avdtp *session);
 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);