gmime r1257 - in trunk: . gmime
- From: fejj svn gnome org
- To: svn-commits-list gnome org
- Subject: gmime r1257 - in trunk: . gmime
- Date: Sat, 24 May 2008 12:04:23 +0000 (UTC)
Author: fejj
Date: Sat May 24 12:04:22 2008
New Revision: 1257
URL: http://svn.gnome.org/viewvc/gmime?rev=1257&view=rev
Log:
2008-05-24 Jeffrey Stedfast <fejj novell com>
* gmime/gmime-message.c (g_mime_message_write_to_stream):
Removed. Removing all deprecated functions which have equivalent
functionality in a parent class.
(g_mime_message_to_string): Same.
* gmime/gmime-part.c (g_mime_part_write_to_stream): Same.
(g_mime_part_to_string): Same.
* gmime/gmime-stream.c (g_mime_stream_ref): Same.
(g_mime_stream_unref): Same.
Modified:
trunk/ChangeLog
trunk/gmime/gmime-message.c
trunk/gmime/gmime-message.h
trunk/gmime/gmime-part.c
trunk/gmime/gmime-part.h
trunk/gmime/gmime-stream.c
trunk/gmime/gmime-stream.h
Modified: trunk/gmime/gmime-message.c
==============================================================================
--- trunk/gmime/gmime-message.c (original)
+++ trunk/gmime/gmime-message.c Sat May 24 12:04:22 2008
@@ -1401,48 +1401,6 @@
}
-/**
- * g_mime_message_write_to_stream:
- * @message: MIME Message
- * @stream: output stream
- *
- * Write the contents of the MIME Message to @stream.
- *
- * WARNING: This interface is deprecated. Use
- * g_mime_object_write_to_stream() instead.
- *
- * Returns %-1 on fail.
- **/
-ssize_t
-g_mime_message_write_to_stream (GMimeMessage *message, GMimeStream *stream)
-{
- g_return_val_if_fail (GMIME_IS_MESSAGE (message), -1);
- g_return_val_if_fail (GMIME_IS_STREAM (stream), -1);
-
- return g_mime_object_write_to_stream ((GMimeObject *) message, stream);
-}
-
-
-/**
- * g_mime_message_to_string:
- * @message: MIME Message
- *
- * Allocates a string buffer containing the mime message @message.
- *
- * WARNING: This interface is deprecated. Use
- * g_mime_object_to_string() instead.
- *
- * Returns an allocated string containing the MIME Message.
- **/
-char *
-g_mime_message_to_string (GMimeMessage *message)
-{
- g_return_val_if_fail (GMIME_IS_MESSAGE (message), NULL);
-
- return g_mime_object_to_string ((GMimeObject *) message);
-}
-
-
/* The proper way to handle a multipart/alternative part is to return
* the last part that we know how to render. For our purposes, we are
* going to assume:
Modified: trunk/gmime/gmime-message.h
==============================================================================
--- trunk/gmime/gmime-message.h (original)
+++ trunk/gmime/gmime-message.h Sat May 24 12:04:22 2008
@@ -124,9 +124,6 @@
void g_mime_message_set_mime_part (GMimeMessage *message, GMimeObject *mime_part);
#ifndef GMIME_DISABLE_DEPRECATED
-ssize_t g_mime_message_write_to_stream (GMimeMessage *message, GMimeStream *stream);
-char *g_mime_message_to_string (GMimeMessage *message);
-
char *g_mime_message_get_body (const GMimeMessage *message, gboolean want_plain, gboolean *is_html);
#endif /* GMIME_DISABLE_DEPRECATED */
Modified: trunk/gmime/gmime-part.c
==============================================================================
--- trunk/gmime/gmime-part.c (original)
+++ trunk/gmime/gmime-part.c Sat May 24 12:04:22 2008
@@ -1306,45 +1306,3 @@
return retval;
}
-
-
-/**
- * g_mime_part_write_to_stream:
- * @mime_part: MIME Part
- * @stream: output stream
- *
- * Writes the contents of the MIME Part to @stream.
- *
- * WARNING: This interface is deprecated. Use
- * g_mime_object_write_to_stream() instead.
- *
- * Returns the number of bytes written or %-1 on fail.
- **/
-ssize_t
-g_mime_part_write_to_stream (GMimePart *mime_part, GMimeStream *stream)
-{
- g_return_val_if_fail (GMIME_IS_PART (mime_part), -1);
- g_return_val_if_fail (GMIME_IS_STREAM (stream), -1);
-
- return g_mime_object_write_to_stream ((GMimeObject *) mime_part, stream);
-}
-
-
-/**
- * g_mime_part_to_string:
- * @mime_part: MIME Part
- *
- * Allocates a string buffer containing the MIME Part.
- *
- * WARNING: This interface is deprecated. Use
- * g_mime_object_to_string() instead.
- *
- * Returns an allocated string containing the MIME Part.
- **/
-char *
-g_mime_part_to_string (GMimePart *mime_part)
-{
- g_return_val_if_fail (GMIME_IS_PART (mime_part), NULL);
-
- return g_mime_object_to_string ((GMimeObject *) mime_part);
-}
Modified: trunk/gmime/gmime-part.h
==============================================================================
--- trunk/gmime/gmime-part.h (original)
+++ trunk/gmime/gmime-part.h Sat May 24 12:04:22 2008
@@ -113,11 +113,6 @@
void g_mime_part_set_content_object (GMimePart *mime_part, GMimeDataWrapper *content);
GMimeDataWrapper *g_mime_part_get_content_object (const GMimePart *mime_part);
-#ifndef GMIME_DISABLE_DEPRECATED
-ssize_t g_mime_part_write_to_stream (GMimePart *mime_part, GMimeStream *stream);
-char *g_mime_part_to_string (GMimePart *mime_part);
-#endif /* GMIME_DISABLE_DEPRECATED */
-
G_END_DECLS
#endif /* __GMIME_PART_H__ */
Modified: trunk/gmime/gmime-stream.c
==============================================================================
--- trunk/gmime/gmime-stream.c (original)
+++ trunk/gmime/gmime-stream.c Sat May 24 12:04:22 2008
@@ -440,40 +440,6 @@
/**
- * g_mime_stream_ref:
- * @stream: stream
- *
- * Ref's a stream.
- *
- * WARNING: This method is deprecated. Use g_object_ref() instead.
- **/
-void
-g_mime_stream_ref (GMimeStream *stream)
-{
- g_return_if_fail (GMIME_IS_STREAM (stream));
-
- g_object_ref (stream);
-}
-
-
-/**
- * g_mime_stream_unref:
- * @stream: stream
- *
- * Unref's a stream.
- *
- * WARNING: This method is deprecated. Use g_object_unref() instead.
- **/
-void
-g_mime_stream_unref (GMimeStream *stream)
-{
- g_return_if_fail (GMIME_IS_STREAM (stream));
-
- g_object_unref (stream);
-}
-
-
-/**
* g_mime_stream_set_bounds:
* @stream: stream
* @start: start boundary
Modified: trunk/gmime/gmime-stream.h
==============================================================================
--- trunk/gmime/gmime-stream.h (original)
+++ trunk/gmime/gmime-stream.h Sat May 24 12:04:22 2008
@@ -116,11 +116,6 @@
GMimeStream *g_mime_stream_substream (GMimeStream *stream, gint64 start, gint64 end);
-#ifndef GMIME_DISABLE_DEPRECATED
-void g_mime_stream_ref (GMimeStream *stream);
-void g_mime_stream_unref (GMimeStream *stream);
-#endif
-
void g_mime_stream_set_bounds (GMimeStream *stream, gint64 start, gint64 end);
ssize_t g_mime_stream_write_string (GMimeStream *stream, const char *string);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]