aboutsummaryrefslogtreecommitdiffstats
path: root/tests
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 /tests
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 'tests')
-rw-r--r--tests/test1.c2
-rw-r--r--tests/test10.c2
-rw-r--r--tests/test2.c2
-rw-r--r--tests/ui-tests/message-browser.c3
4 files changed, 4 insertions, 5 deletions
diff --git a/tests/test1.c b/tests/test1.c
index d967bb3566..c2f5bc87c0 100644
--- a/tests/test1.c
+++ b/tests/test1.c
@@ -44,7 +44,7 @@ main (int argc, char**argv)
}
}
- message = camel_mime_message_new_with_session ((CamelSession *)NULL);
+ message = camel_mime_message_new ();
camel_mime_part_set_description (CAMEL_MIME_PART (message), "a test");
diff --git a/tests/test10.c b/tests/test10.c
index 1d1d2904b9..fe976d4808 100644
--- a/tests/test10.c
+++ b/tests/test10.c
@@ -26,7 +26,7 @@ create_sample_mime_message ()
CamelMultipart *multipart;
- message = camel_mime_message_new_with_session ((CamelSession *)NULL);
+ message = camel_mime_message_new ();
camel_mime_part_set_description (CAMEL_MIME_PART (message), "a test");
diff --git a/tests/test2.c b/tests/test2.c
index 17fd4ffc9a..6e93a731a9 100644
--- a/tests/test2.c
+++ b/tests/test2.c
@@ -20,7 +20,7 @@ main (int argc, char**argv)
camel_init ();
camel_debug_level = CAMEL_LOG_LEVEL_FULL_DEBUG;
- message = camel_mime_message_new_with_session( (CamelSession *)NULL);
+ message = camel_mime_message_new ();
input_stream = camel_stream_fs_new_with_name ("mail.test", CAMEL_STREAM_FS_READ);
diff --git a/tests/ui-tests/message-browser.c b/tests/ui-tests/message-browser.c
index 35c71580e7..8f7127905c 100644
--- a/tests/ui-tests/message-browser.c
+++ b/tests/ui-tests/message-browser.c
@@ -210,8 +210,7 @@ filename_to_camel_msg (gchar* filename)
if (!input_stream)
return NULL;
- message = camel_mime_message_new_with_session (
- (CamelSession *)NULL);
+ message = camel_mime_message_new ();
camel_data_wrapper_set_input_stream (
CAMEL_DATA_WRAPPER (message), input_stream);
rs/uae?id=8d9d5197561118544281733430b48b0b60884450'>Mass-conversion to the USE_AUTOTOOLS New World Order. The code presentade2005-11-151-1/+1 * Bump PORTREVISION to chase the glib20 shared library update.marcus2005-11-051-0/+1 * - Add one more MASTER_SITEgarga2005-10-201-1/+2 * . register CONFLICTSehaupt2005-10-191-0/+2 * - Update to 0.8.25 [1]garga2005-10-065-50/+32 * Unbreak with recent GCC.danfe2004-10-012-7/+21 * BROKEN on 5.x: Does not compilekris2004-09-291-1/+7 * - SIZE'ifykrion2004-03-181-0/+1 * Whoa there, boy, that's a mighty big commit y'all have there...ade2004-03-141-1/+1 * Bump PORTREVISION on all ports that depend on gettext to aid with upgrading.marcus2004-02-041-1/+1 * Patch to use DOCSDIR and DATADIRleeym2003-06-302-34/+35 * Remove USE_GNOMENG.marcus2003-04-201-1/+0 * Allow UAE to build with gcc3.x.mbr2003-02-25