CamelStreamFs: Remove unused "with bounds" functions.
authorMatthew Barnes <mbarnes@redhat.com>
Sat, 22 Jan 2011 21:27:55 +0000 (16:27 -0500)
committerMatthew Barnes <mbarnes@redhat.com>
Mon, 24 Jan 2011 02:20:29 +0000 (21:20 -0500)
camel/camel-stream-fs.c
camel/camel-stream-fs.h
docs/reference/camel/camel-sections.txt
docs/reference/camel/tmpl/camel-stream-fs.sgml

index 23eebea..aa3383b 100644 (file)
@@ -284,32 +284,6 @@ camel_stream_fs_new_with_fd (gint fd)
 }
 
 /**
- * camel_stream_fs_new_with_fd_and_bounds:
- * @fd: a file descriptor
- * @start: the first valid position in the file
- * @end: the first invalid position in the file, or #CAMEL_STREAM_UNBOUND
- *
- * Gets a stream associated with the given file descriptor and bounds.
- * When the stream is destroyed, the file descriptor will be closed.
- *
- * Returns: the bound stream
- **/
-CamelStream *
-camel_stream_fs_new_with_fd_and_bounds (gint fd,
-                                        goffset start,
-                                        goffset end,
-                                        GError **error)
-{
-       CamelStream *stream;
-
-       stream = camel_stream_fs_new_with_fd (fd);
-       camel_seekable_stream_set_bounds (
-               CAMEL_SEEKABLE_STREAM (stream), start, end, error);
-
-       return stream;
-}
-
-/**
  * camel_stream_fs_new_with_name:
  * @name: a local filename
  * @flags: flags as in open(2)
@@ -342,46 +316,6 @@ camel_stream_fs_new_with_name (const gchar *name,
 }
 
 /**
- * camel_stream_fs_new_with_name_and_bounds:
- * @name: a local filename
- * @flags: flags as in open(2)
- * @mode: a file mode
- * @start: the first valid position in the file
- * @end: the first invalid position in the file, or #CAMEL_STREAM_UNBOUND
- * @error: return location for a #GError, or %NULL
- *
- * Creates a new CamelStream corresponding to the given arguments.
- *
- * Returns: the stream, or %NULL on error.
- **/
-CamelStream *
-camel_stream_fs_new_with_name_and_bounds (const gchar *name,
-                                          gint flags,
-                                          mode_t mode,
-                                          goffset start,
-                                          goffset end,
-                                          GError **error)
-{
-       CamelStream *stream;
-       gint retval;
-
-       stream = camel_stream_fs_new_with_name (name, flags, mode, error);
-       if (stream == NULL)
-               return NULL;
-
-       retval = camel_seekable_stream_set_bounds (
-               CAMEL_SEEKABLE_STREAM (stream),
-               start, end, error);
-
-       if (retval == -1) {
-               g_object_unref (stream);
-               stream = NULL;
-       }
-
-       return stream;
-}
-
-/**
  * camel_stream_fs_get_fd:
  * @stream: a #CamelStream
  *
index e210a50..4d2e828 100644 (file)
@@ -75,19 +75,7 @@ CamelStream *        camel_stream_fs_new_with_name   (const gchar *name,
                                                 gint flags,
                                                 mode_t mode,
                                                 GError **error);
-CamelStream *  camel_stream_fs_new_with_name_and_bounds
-                                               (const gchar *name,
-                                                gint flags,
-                                                mode_t mode,
-                                                goffset start,
-                                                goffset end,
-                                                GError **error);
 CamelStream *  camel_stream_fs_new_with_fd     (gint fd);
-CamelStream *  camel_stream_fs_new_with_fd_and_bounds
-                                               (gint fd,
-                                                goffset start,
-                                                goffset end,
-                                                GError **error);
 gint           camel_stream_fs_get_fd          (CamelStreamFs *stream);
 
 G_END_DECLS
index de4d289..74ec52a 100644 (file)
@@ -2225,9 +2225,7 @@ camel_stream_filter_get_type
 <TITLE>CamelStreamFs</TITLE>
 CamelStreamFs
 camel_stream_fs_new_with_name
-camel_stream_fs_new_with_name_and_bounds
 camel_stream_fs_new_with_fd
-camel_stream_fs_new_with_fd_and_bounds
 camel_stream_fs_get_fd
 <SUBSECTION Standard>
 CAMEL_STREAM_FS
index 0f6ee7e..1b3d0b5 100644 (file)
@@ -38,20 +38,6 @@ CamelStreamFs
 @Returns: 
 
 
-<!-- ##### FUNCTION camel_stream_fs_new_with_name_and_bounds ##### -->
-<para>
-
-</para>
-
-@name: 
-@flags: 
-@mode: 
-@start: 
-@end: 
-@error: 
-@Returns: 
-
-
 <!-- ##### FUNCTION camel_stream_fs_new_with_fd ##### -->
 <para>
 
@@ -61,18 +47,6 @@ CamelStreamFs
 @Returns: 
 
 
-<!-- ##### FUNCTION camel_stream_fs_new_with_fd_and_bounds ##### -->
-<para>
-
-</para>
-
-@fd: 
-@start: 
-@end: 
-@error: 
-@Returns: 
-
-
 <!-- ##### FUNCTION camel_stream_fs_get_fd ##### -->
 <para>