OSDN Git Service

avdtp: Remove unused avdtp_is_connected function
authorSzymon Janc <szymon.janc@tieto.com>
Thu, 10 Oct 2013 08:53:37 +0000 (10:53 +0200)
committerJohan Hedberg <johan.hedberg@intel.com>
Thu, 10 Oct 2013 20:35:10 +0000 (22:35 +0200)
It is not used anywhere and can be removed.

profiles/audio/avdtp.c
profiles/audio/avdtp.h

index fc896c7..1f29050 100644 (file)
@@ -3164,25 +3164,6 @@ static gboolean avdtp_parse_rej(struct avdtp *session,
        }
 }
 
-gboolean avdtp_is_connected(struct btd_device *device)
-{
-       struct avdtp_server *server;
-       struct avdtp *session;
-
-       server = find_server(servers, device_get_adapter(device));
-       if (!server)
-               return FALSE;
-
-       session = find_session(server->sessions, device);
-       if (!session)
-               return FALSE;
-
-       if (session->state != AVDTP_SESSION_STATE_DISCONNECTED)
-               return TRUE;
-
-       return FALSE;
-}
-
 struct avdtp_service_capability *avdtp_stream_get_codec(
                                                struct avdtp_stream *stream)
 {
index b8aaf1d..e19dfc3 100644 (file)
@@ -218,8 +218,6 @@ struct avdtp *avdtp_get(struct btd_device *device);
 void avdtp_unref(struct avdtp *session);
 struct avdtp *avdtp_ref(struct avdtp *session);
 
-gboolean avdtp_is_connected(struct btd_device *device);
-
 struct avdtp_service_capability *avdtp_service_cap_new(uint8_t category,
                                                        void *data, int size);