Now that we only keep track whether we support wideband speech or not, we
don't have to keep track of the list of codecs supported by the Agent.
---
 src/handsfree-audio.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c
index 69d033d..188deee 100644
--- a/src/handsfree-audio.c
+++ b/src/handsfree-audio.c
@@ -55,8 +55,6 @@ struct ofono_handsfree_card {
 struct agent {
        char *owner;
        char *path;
-       unsigned char *codecs;
-       int codecs_len;
        guint watch;
 };
 
@@ -548,7 +546,6 @@ static void agent_free(struct agent *agent)
 
        g_free(agent->owner);
        g_free(agent->path);
-       g_free(agent->codecs);
        g_free(agent);
 }
 
@@ -660,8 +657,6 @@ static DBusMessage *am_agent_register(DBusConnection *conn,
        agent = g_new0(struct agent, 1);
        agent->owner = g_strdup(sender);
        agent->path = g_strdup(path);
-       agent->codecs = g_memdup(codecs, length);
-       agent->codecs_len = length;
        agent->watch = g_dbus_add_disconnect_watch(conn, sender,
                                                agent_disconnect, NULL, NULL);
 
-- 
1.8.2

_______________________________________________
ofono mailing list
[email protected]
http://lists.ofono.org/listinfo/ofono

Reply via email to