gmime r1414 - trunk/tests
- From: fejj svn gnome org
- To: svn-commits-list gnome org
- Subject: gmime r1414 - trunk/tests
- Date: Sun, 31 Aug 2008 17:16:02 +0000 (UTC)
Author: fejj
Date: Sun Aug 31 17:16:02 2008
New Revision: 1414
URL: http://svn.gnome.org/viewvc/gmime?rev=1414&view=rev
Log:
got rid of unnecessary code
Modified:
trunk/tests/test-pgpmime.c
Modified: trunk/tests/test-pgpmime.c
==============================================================================
--- trunk/tests/test-pgpmime.c (original)
+++ trunk/tests/test-pgpmime.c Sun Aug 31 17:16:02 2008
@@ -213,7 +213,6 @@
test_multipart_signed (GMimeCipherContext *ctx)
{
GMimeSignatureValidity *validity;
- GMimeContentType *content_type;
GMimeMultipartSigned *mps;
GMimeDataWrapper *content;
GMimeMessage *message;
@@ -223,9 +222,7 @@
GMimePart *part;
Exception *ex;
- part = g_mime_part_new ();
- content_type = g_mime_content_type_new ("text", "plain");
- g_mime_object_set_content_type ((GMimeObject *) part, content_type);
+ part = g_mime_part_new_with_type ("text", "plain");
stream = g_mime_stream_mem_new ();
g_mime_stream_write_string (stream, MULTIPART_SIGNED_CONTENT);
@@ -312,7 +309,6 @@
{
const GMimeSignatureValidity *sv;
GMimeStream *cleartext, *stream;
- GMimeContentType *content_type;
GMimeMultipartEncrypted *mpe;
GMimeDataWrapper *content;
GMimeObject *decrypted;
@@ -332,9 +328,7 @@
g_mime_data_wrapper_set_stream (content, cleartext);
g_object_unref (cleartext);
- part = g_mime_part_new ();
- content_type = g_mime_content_type_new ("text", "plain");
- g_mime_object_set_content_type ((GMimeObject *) part, content_type);
+ part = g_mime_part_new_with_type ("text", "plain");
g_mime_part_set_content_object (part, content);
g_object_unref (content);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]