diff src/server.c @ 10853:2409700be3dc

[gaim-migrate @ 12527] (15:46:50) LSchiere2: grim: commit message? (15:47:01) grim: LSchiere2: whatever..[sic] grim fixed a crash and some oddness in renaming groups. a related patch went into oldstatus a while back (also from grim). This is the HEAD version, removing a server.[ch] function in the process. committer: Tailor Script <tailor@pidgin.im>
author Luke Schierer <lschiere@pidgin.im>
date Tue, 19 Apr 2005 19:48:29 +0000
parents fa06fda62868
children 6240d7fd5b2c
line wrap: on
line diff
--- a/src/server.c	Tue Apr 19 16:00:20 2005 +0000
+++ b/src/server.c	Tue Apr 19 19:48:29 2005 +0000
@@ -381,38 +381,6 @@
 	}
 }
 
-/*
- * Rename a group on server roster/list.
- */
-void serv_rename_group(GaimConnection *gc, const char *old_name,
-					   GaimGroup *group, GList *moved_buddies)
-{
-	GaimPluginProtocolInfo *prpl_info = NULL;
-
-	if (gc != NULL && gc->prpl != NULL)
-		prpl_info = GAIM_PLUGIN_PROTOCOL_INFO(gc->prpl);
-
-	if (prpl_info && old_name && group && strcmp(old_name, group->name)) {
-		if (prpl_info->rename_group) {
-			/* prpl's might need to check if the group already
-			 * exists or not, and handle that differently */
-			prpl_info->rename_group(gc, old_name, group, moved_buddies);
-		} else {
-			GList *cur, *groups = NULL;
-
-			/* Make a list of what the groups each buddy is in */
-			for (cur = moved_buddies; cur != NULL; cur = cur->next) {
-				GaimBlistNode *node = cur->data;
-				groups = g_list_append(groups, node->parent->parent);
-			}
-
-			serv_remove_buddies(gc, moved_buddies, groups);
-			g_list_free(groups);
-			serv_add_buddies(gc, moved_buddies);
-		}
-	}
-}
-
 void serv_add_permit(GaimConnection *g, const char *name)
 {
 	GaimPluginProtocolInfo *prpl_info = NULL;