changeset 7671:b8a6aec3d23e

[gaim-migrate @ 8315] Christian, this wasn't implemented on purpose. Contacts are not to be found. If you're trying to find them, you're doing something wrong. Very wrong. They are nameless and faceless (but not aliasless, by popular demand) entities but they're not to be taken seriously. Also, there can be 50 contacts that would all be equally valid to return searching for a given name in a group, hence the (continued) non-existence of this function. Sorry :-/ foot.down(); committer: Tailor Script <tailor@pidgin.im>
author Nathan Walp <nwalp@pidgin.im>
date Sun, 30 Nov 2003 15:40:15 +0000
parents 5076246a211b
children 73c7b22cf9bb
files src/blist.c
diffstat 1 files changed, 0 insertions(+), 32 deletions(-) [+]
line wrap: on
line diff
--- a/src/blist.c	Sun Nov 30 08:22:17 2003 +0000
+++ b/src/blist.c	Sun Nov 30 15:40:15 2003 +0000
@@ -1305,38 +1305,6 @@
 	return NULL;
 }
 
-GaimContact *
-gaim_find_contact(GaimGroup *group, const char *name)
-{
-	GaimBlistNode *node;
-
-	g_return_val_if_fail(gaim_get_blist() != NULL, NULL);
-	g_return_val_if_fail(name != NULL, NULL);
-
-	for (node = ((GaimBlistNode *)group)->child;
-		 node != NULL;
-		 node = node->next)
-	{
-		GaimContact *contact;
-		GaimBuddy *buddy;
-
-		if (!GAIM_BLIST_NODE_IS_CONTACT(node))
-			continue;
-
-		contact = (GaimContact *)node;
-
-		if (contact->alias != NULL && !strcmp(contact->alias, name))
-			return contact;
-
-		buddy = gaim_contact_get_priority_buddy(contact);
-
-		if (!strcmp(gaim_get_buddy_alias(buddy), name))
-			return contact;
-	}
-
-	return NULL;
-}
-
 GaimChat *
 gaim_blist_find_chat(GaimAccount *account, const char *name)
 {