Commit 0cfa532d authored by Dafydd Harries's avatar Dafydd Harries

remove nice_agent_pop_event

darcs-hash:20070208131326-c9803-3dd07a06f08c1cce484f7e8f663af391eb3df50d.gz
parent df972e33
......@@ -165,32 +165,6 @@ nice_agent_new (NiceUDPSocketFactory *factory)
}
NiceEvent *
nice_agent_pop_event (NiceAgent *agent)
{
NiceEvent *event;
GSList *head;
if (agent->events == NULL)
return NULL;
head = agent->events;
event = head->data;
agent->events = head->next;
g_slist_free_1 (head);
return event;
}
#if 0
static void
nice_agent_push_event (NiceAgent *agent, NiceEvent *event)
{
agent->events = g_slist_append (agent->events, event);
}
#endif
static void
nice_agent_add_local_host_candidate (
NiceAgent *agent,
......
......@@ -37,9 +37,6 @@ typedef void (*NiceAgentRecvFunc) (
NiceAgent *
nice_agent_new (NiceUDPSocketFactory *factory);
NiceEvent *
nice_agent_pop_event (NiceAgent *agent);
void
nice_agent_add_local_address (NiceAgent *agent, NiceAddress *addr);
......
......@@ -36,7 +36,6 @@ main (void)
g_assert (agent->local_addresses == NULL);
g_assert (agent->local_candidates == NULL);
g_assert (nice_agent_pop_event (agent) == NULL);
/* add one local address */
nice_agent_add_local_address (agent, &addr_local);
......@@ -71,8 +70,7 @@ main (void)
g_assert (0 == strcmp (candidate->username, "username"));
g_assert (0 == strcmp (candidate->password, "password"));
/* check there's no unexpected events, and clean up */
g_assert (nice_agent_pop_event (agent) == NULL);
/* clean up */
nice_agent_free (agent);
return 0;
}
......
......@@ -14,7 +14,6 @@ T nice_agent_free
T nice_agent_get_local_candidates
T nice_agent_new
T nice_agent_poll_read
T nice_agent_pop_event
T nice_agent_recv
T nice_agent_send
T nice_candidate_free
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment