changeset 26336:775920086761

Remove purple_media_get_overall_type.
author Mike Ruprecht <maiku@soc.pidgin.im>
date Sun, 22 Mar 2009 21:02:48 +0000
parents d06236d07c9e
children dd45432d6b69
files libpurple/media.c libpurple/media.h
diffstat 2 files changed, 0 insertions(+), 29 deletions(-) [+]
line wrap: on
line diff
--- a/libpurple/media.c	Sat Mar 21 09:10:20 2009 +0000
+++ b/libpurple/media.c	Sun Mar 22 21:02:48 2009 +0000
@@ -944,26 +944,6 @@
 	return type;
 }
 
-
-
-PurpleMediaSessionType
-purple_media_get_overall_type(PurpleMedia *media)
-{
-	GList *values;
-	PurpleMediaSessionType type = PURPLE_MEDIA_NONE;
-
-	g_return_val_if_fail(PURPLE_IS_MEDIA(media), type);
-
-	values = g_hash_table_get_values(media->priv->sessions);
-
-	for (; values; values = g_list_delete_link(values, values)) {
-		PurpleMediaSession *session = values->data;
-		type |= session->type;
-	}
-
-	return type;
-}
-
 static PurpleMediaSession*
 purple_media_get_session(PurpleMedia *media, const gchar *sess_id)
 {
--- a/libpurple/media.h	Sat Mar 21 09:10:20 2009 +0000
+++ b/libpurple/media.h	Sun Mar 22 21:02:48 2009 +0000
@@ -333,15 +333,6 @@
 void purple_media_codec_list_free(GList *codecs);
 
 /**
- * Combines all the separate session types into a single PurpleMediaSessionType.
- *
- * @param media The media session to retrieve session types from.
- *
- * @return Combined type.
- */
-PurpleMediaSessionType purple_media_get_overall_type(PurpleMedia *media);
-
-/**
  * Gets a list of session names.
  *
  * @param media The media session to retrieve session names from.