[evolution-data-server] CamelStreamFs: Remove unused "with bounds" functions.



commit 47783efde9500016fffb11ba5302f54dcb688a47
Author: Matthew Barnes <mbarnes redhat com>
Date:   Sat Jan 22 16:27:55 2011 -0500

    CamelStreamFs: Remove unused "with bounds" functions.

 camel/camel-stream-fs.c                        |   66 ------------------------
 camel/camel-stream-fs.h                        |   12 ----
 docs/reference/camel/camel-sections.txt        |    2 -
 docs/reference/camel/tmpl/camel-stream-fs.sgml |   26 ---------
 4 files changed, 0 insertions(+), 106 deletions(-)
---
diff --git a/camel/camel-stream-fs.c b/camel/camel-stream-fs.c
index 23eebea..aa3383b 100644
--- a/camel/camel-stream-fs.c
+++ b/camel/camel-stream-fs.c
@@ -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
  *
diff --git a/camel/camel-stream-fs.h b/camel/camel-stream-fs.h
index e210a50..4d2e828 100644
--- a/camel/camel-stream-fs.h
+++ b/camel/camel-stream-fs.h
@@ -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
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index de4d289..74ec52a 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -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
diff --git a/docs/reference/camel/tmpl/camel-stream-fs.sgml b/docs/reference/camel/tmpl/camel-stream-fs.sgml
index 0f6ee7e..1b3d0b5 100644
--- a/docs/reference/camel/tmpl/camel-stream-fs.sgml
+++ b/docs/reference/camel/tmpl/camel-stream-fs.sgml
@@ -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>
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]