From b2273d313f5ba29098d85501f7c9559dabaf4b39 Mon Sep 17 00:00:00 2001 From: Vinicius Costa Gomes Date: Mon, 8 Apr 2013 19:41:03 -0300 Subject: handsfree-audio: Remove unused 'codecs' field from agent 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(-) (limited to 'src/handsfree-audio.c') diff --git a/src/handsfree-audio.c b/src/handsfree-audio.c index 699c8cca..29fe3e7a 100644 --- a/src/handsfree-audio.c +++ b/src/handsfree-audio.c @@ -61,8 +61,6 @@ struct ofono_handsfree_card { struct agent { char *owner; char *path; - unsigned char *codecs; - int codecs_len; guint watch; }; @@ -554,7 +552,6 @@ static void agent_free(struct agent *agent) g_free(agent->owner); g_free(agent->path); - g_free(agent->codecs); g_free(agent); } @@ -666,8 +663,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); -- cgit v1.2.3