changeset 10805:4151d16f6348

[gaim-migrate @ 12453] i vote this goes away committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 10 Apr 2005 02:22:15 +0000
parents 6dcfec6f2f7c
children 58c84363c8ae
files src/conversation.c src/conversation.h
diffstat 2 files changed, 0 insertions(+), 49 deletions(-) [+]
line wrap: on
line diff
--- a/src/conversation.c	Sat Apr 09 17:12:07 2005 +0000
+++ b/src/conversation.c	Sun Apr 10 02:22:15 2005 +0000
@@ -1351,42 +1351,6 @@
 }
 
 
-/*
- * This is deprecated, right?  --SomeOne
- *
- * I don't know, I could see uses for it.  Specifically, a plugin
- * that wants to know if you're talking to a specific person.
- *        --KingAnt
- */
-GaimConversation *
-gaim_find_conversation(GaimConversationType type,
-					   const char *name)
-{
-	GaimConversation *c = NULL;
-	gchar *name1;
-	const gchar *name2;
-	GList *cnv;
-
-	g_return_val_if_fail(name != NULL, NULL);
-
-	name1 = g_strdup(gaim_normalize(NULL, name));
-
-	for (cnv = gaim_get_conversations(); cnv != NULL; cnv = cnv->next) {
-		c = (GaimConversation *)cnv->data;
-		name2 = gaim_normalize(NULL, gaim_conversation_get_name(c));
-
-		if (((type == GAIM_CONV_ANY) || (type == gaim_conversation_get_type(c))) &&
-				!gaim_utf8_strcasecmp(name1, name2))
-			break;
-
-		c = NULL;
-	}
-
-	g_free(name1);
-
-	return c;
-}
-
 GaimConversation *
 gaim_find_conversation_with_account(GaimConversationType type,
 									const char *name,
--- a/src/conversation.h	Sat Apr 09 17:12:07 2005 +0000
+++ b/src/conversation.h	Sun Apr 10 02:22:15 2005 +0000
@@ -799,19 +799,6 @@
 GList *gaim_get_chats(void);
 
 /**
- * Finds the conversation with the specified type and name.  In most
- * cases you should use gaim_find_conversation_with_account() instead
- * of this.
- *
- * @param type The type of the conversation.
- * @param name The name of the conversation.
- *
- * @return The conversation if found, or @c NULL otherwise.
- */
-GaimConversation *gaim_find_conversation(GaimConversationType type,
-										 const char *name);
-
-/**
  * Finds a conversation with the specified type, name, and Gaim account.
  *
  * @param type The type of the conversation.