diff src/conversation.c @ 9166:1e51236d825e

[gaim-migrate @ 9951] This removes some stuff for im image that isn't used anymore. Basicly one of the things I did when i brought it back, was to make it so the host widget doesn't have to do any special handling for its imhtml to support <img id="###"> tags. And while this goal was achieved in 0.78, there's still code all over the place that checks flags that aren't used and iterates over lists that will always be empty. This doesn't remove all of it, but removes some of it anyway. committer: Tailor Script <tailor@pidgin.im>
author Tim Ringenbach <marv@pidgin.im>
date Wed, 02 Jun 2004 05:08:49 +0000
parents e0c50af60837
children 45d2ad4ac1c1
line wrap: on
line diff
--- a/src/conversation.c	Wed Jun 02 04:50:31 2004 +0000
+++ b/src/conversation.c	Wed Jun 02 05:08:49 2004 +0000
@@ -225,43 +225,21 @@
 						 gaim_conversation_get_name(conv), &sent);
 
 		if (sent != NULL && sent[0] != '\0') {
-			GaimConvImFlags imflags = 0;
 			GaimMessageFlags msgflags = GAIM_MESSAGE_SEND;
 
-			if (im->images != NULL) {
-				imflags |= GAIM_CONV_IM_IMAGES;
-				msgflags |= GAIM_MESSAGE_IMAGES;
-			}
-
 			if (gc && gc->flags & GAIM_CONNECTION_HTML) {
 				err = serv_send_im(gc, gaim_conversation_get_name(conv),
-				                   sent, imflags);
+				                   sent, 0);
 			} else {
 				gchar *tmp = gaim_unescape_html(sent);
 				err = serv_send_im(gc, gaim_conversation_get_name(conv),
-				                   tmp, imflags);
+				                   tmp, 0);
 				g_free(tmp);
 			}
 
 			if ((err > 0) && (displayed != NULL))
 				gaim_conv_im_write(im, NULL, displayed, msgflags, time(NULL));
 
-			if (im->images != NULL) {
-				GSList *tempy;
-				int image;
-
-				for (tempy = im->images;
-					 tempy != NULL;
-					 tempy = tempy->next) {
-
-					image = GPOINTER_TO_INT(tempy->data);
-					gaim_imgstore_unref(image);
-				}
-
-				g_slist_free(im->images);
-				im->images = NULL;
-			}
-
 			gaim_signal_emit(gaim_conversations_get_handle(), "sent-im-msg",
 							 gaim_conversation_get_account(conv),
 							 gaim_conversation_get_name(conv), sent);
@@ -982,22 +960,9 @@
 	conversations = g_list_remove(conversations, conv);
 
 	if (conv->type == GAIM_CONV_IM) {
-		GSList *tempy;
-		int image;
-
 		gaim_conv_im_stop_typing_timeout(conv->u.im);
 		gaim_conv_im_stop_type_again_timeout(conv->u.im);
 
-		for (tempy = conv->u.im->images;
-			 tempy != NULL;
-			 tempy = tempy->next) {
-
-			image = GPOINTER_TO_INT(tempy->data);
-			gaim_imgstore_unref(image);
-		}
-
-		g_slist_free(conv->u.im->images);
-
 		if (conv->u.im->icon != NULL)
 			gaim_buddy_icon_unref(conv->u.im->icon);