[Nice] [nice/master] Remove boolean return value, its always true ans always ignored

Olivier Crête olivier.crete at collabora.co.uk
Wed Nov 5 14:02:14 PST 2008


---
 agent/discovery.c |    4 +---
 agent/discovery.h |    2 +-
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/agent/discovery.c b/agent/discovery.c
index a53adb2..b3847a2 100644
--- a/agent/discovery.c
+++ b/agent/discovery.c
@@ -103,7 +103,7 @@ void discovery_free (NiceAgent *agent)
  *
  * @return TRUE on success, FALSE on a fatal error
  */
-gboolean discovery_prune_stream (NiceAgent *agent, guint stream_id)
+void discovery_prune_stream (NiceAgent *agent, guint stream_id)
 {
   GSList *i;
 
@@ -122,8 +122,6 @@ gboolean discovery_prune_stream (NiceAgent *agent, guint stream_id)
     /* noone using the timer anymore, clean it up */
     discovery_free (agent);
   }
-
-  return TRUE;
 }
 
 /**
diff --git a/agent/discovery.h b/agent/discovery.h
index db534af..1e2cf57 100644
--- a/agent/discovery.h
+++ b/agent/discovery.h
@@ -63,7 +63,7 @@ struct _CandidateDiscovery
 
 void discovery_free_item (gpointer data, gpointer user_data);
 void discovery_free (NiceAgent *agent);
-gboolean discovery_prune_stream (NiceAgent *agent, guint stream_id);
+void discovery_prune_stream (NiceAgent *agent, guint stream_id);
 void discovery_schedule (NiceAgent *agent);
 
 NiceCandidate *
-- 
1.5.6.5




More information about the Nice mailing list