aboutsummaryrefslogtreecommitdiffstats
path: root/camel/camel-mime-message.c
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-04-18 04:23:30 +0800
committerDan Winship <danw@src.gnome.org>2000-04-18 04:23:30 +0800
commit96b306af3289d236e2b23f8cb91327dc71c937b8 (patch)
tree10e03a5d8ad12db4751cd6c4744a6525c4e793d3 /camel/camel-mime-message.c
parentc52986db9777f0da353908c57e2c8a3e16204448 (diff)
downloadgsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.tar.gz
gsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.tar.zst
gsoc2013-evolution-96b306af3289d236e2b23f8cb91327dc71c937b8.zip
Remove the "session" field from CamelMimeMessage. Nothing uses it, about
* camel-mime-message.[ch]: Remove the "session" field from CamelMimeMessage. Nothing uses it, about half of the existing calls to camel_mime_message_new_with_session pass NULL, and there's no obvious reason for it to be there. * others: Use camel_mime_message_new instead of camel_mime_message_new_with_session svn path=/trunk/; revision=2479
Diffstat (limited to 'camel/camel-mime-message.c')
-rw-r--r--camel/camel-mime-message.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/camel/camel-mime-message.c b/camel/camel-mime-message.c
index 4a36806a5d..5445a48905 100644
--- a/camel/camel-mime-message.c
+++ b/camel/camel-mime-message.c
@@ -157,7 +157,6 @@ camel_mime_message_init (gpointer object, gpointer klass)
camel_mime_message->reply_to = NULL;
camel_mime_message->from = NULL;
camel_mime_message->folder = NULL;
- camel_mime_message->session = NULL;
}
GtkType
@@ -199,7 +198,6 @@ _finalize (GtkObject *object)
if (message->recipients) camel_recipient_table_unref (message->recipients);
if (message->folder) gtk_object_unref (GTK_OBJECT (message->folder));
- if (message->session) gtk_object_unref (GTK_OBJECT (message->session));
if (message->flags)
g_hash_table_foreach (message->flags, g_hash_table_generic_free, NULL);
@@ -212,12 +210,10 @@ _finalize (GtkObject *object)
CamelMimeMessage *
-camel_mime_message_new_with_session (CamelSession *session)
+camel_mime_message_new (void)
{
CamelMimeMessage *mime_message;
mime_message = gtk_type_new (CAMEL_MIME_MESSAGE_TYPE);
- mime_message->session = session;
- if (session) gtk_object_ref (GTK_OBJECT (session));
return mime_message;
}