diff src/gtkprivacy.c @ 6375:72023626d5b8

[gaim-migrate @ 6880] Removed some unnecessary stuff. Oh yeah, and I think privacy is broken. I can block, but not unblock. I'll fix it tomorrow. committer: Tailor Script <tailor@pidgin.im>
author Christian Hammond <chipx86@chipx86.com>
date Tue, 05 Aug 2003 11:33:18 +0000
parents ca73fdf3eb38
children 01289157fc37
line wrap: on
line diff
--- a/src/gtkprivacy.c	Tue Aug 05 11:18:27 2003 +0000
+++ b/src/gtkprivacy.c	Tue Aug 05 11:33:18 2003 +0000
@@ -236,11 +236,6 @@
 
 	dialog->account = account;
 
-	gaim_debug(GAIM_DEBUG_MISC, "select_account_cb",
-			   "dialog = %p\n", dialog);
-	gaim_debug(GAIM_DEBUG_MISC, "select_account_cb",
-			   "menu_entry_count = %d\n", menu_entry_count);
-
 	for (i = 0; i < menu_entry_count; i++) {
 		if (menu_entries[i].num == account->perm_deny) {
 			gtk_option_menu_set_history(GTK_OPTION_MENU(dialog->type_menu), i);
@@ -315,20 +310,12 @@
 		return;
 
 	if (dialog->in_allow_list) {
-		const char *new_name;
-
-		new_name = find_permit_block_by_name(dialog->account->permit, name);
-
-		if (new_name != NULL)
-			gaim_privacy_permit_remove(dialog->account, new_name);
+		if (find_permit_block_by_name(dialog->account->permit, name))
+			gaim_privacy_permit_remove(dialog->account, name);
 	}
 	else {
-		const char *new_name;
-
-		new_name = find_permit_block_by_name(dialog->account->deny, name);
-
-		if (new_name != NULL)
-			gaim_privacy_deny_remove(dialog->account, new_name);
+		if (find_permit_block_by_name(dialog->account->deny, name))
+			gaim_privacy_deny_remove(dialog->account, name);
 	}
 }