[evolution-data-server] Remove unused camel_multipart_remove_part().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove unused camel_multipart_remove_part().
- Date: Wed, 2 Oct 2013 19:18:38 +0000 (UTC)
commit b157067b22eb504e81aae7041156ffcf415b73a6
Author: Matthew Barnes <mbarnes redhat com>
Date: Wed Oct 2 10:05:10 2013 -0400
Remove unused camel_multipart_remove_part().
camel/camel-multipart-signed.c | 8 -------
camel/camel-multipart.c | 35 -------------------------------
camel/camel-multipart.h | 3 --
docs/reference/camel/camel-sections.txt | 1 -
4 files changed, 0 insertions(+), 47 deletions(-)
---
diff --git a/camel/camel-multipart-signed.c b/camel/camel-multipart-signed.c
index 40c0337..e87a288 100644
--- a/camel/camel-multipart-signed.c
+++ b/camel/camel-multipart-signed.c
@@ -418,13 +418,6 @@ multipart_signed_add_part (CamelMultipart *multipart,
g_warning ("Cannot add parts to a signed part using add_part");
}
-static void
-multipart_signed_remove_part (CamelMultipart *multipart,
- CamelMimePart *part)
-{
- g_warning ("Cannot remove parts from a signed part using remove_part");
-}
-
static CamelMimePart *
multipart_signed_remove_part_at (CamelMultipart *multipart,
guint index)
@@ -598,7 +591,6 @@ camel_multipart_signed_class_init (CamelMultipartSignedClass *class)
multipart_class = CAMEL_MULTIPART_CLASS (class);
multipart_class->add_part = multipart_signed_add_part;
- multipart_class->remove_part = multipart_signed_remove_part;
multipart_class->remove_part_at = multipart_signed_remove_part_at;
multipart_class->get_part = multipart_signed_get_part;
multipart_class->get_number = multipart_signed_get_number;
diff --git a/camel/camel-multipart.c b/camel/camel-multipart.c
index 5115a96..951c99e 100644
--- a/camel/camel-multipart.c
+++ b/camel/camel-multipart.c
@@ -167,18 +167,6 @@ multipart_add_part (CamelMultipart *multipart,
multipart->parts, g_object_ref (part));
}
-static void
-multipart_remove_part (CamelMultipart *multipart,
- CamelMimePart *part)
-{
- /* Make sure we don't unref a part we don't have. */
- if (g_list_find (multipart->parts, part) == NULL)
- return;
-
- multipart->parts = g_list_remove (multipart->parts, part);
- g_object_unref (part);
-}
-
static CamelMimePart *
multipart_remove_part_at (CamelMultipart *multipart,
guint index)
@@ -338,7 +326,6 @@ camel_multipart_class_init (CamelMultipartClass *class)
data_wrapper_class->decode_to_stream_sync = multipart_write_to_stream_sync;
class->add_part = multipart_add_part;
- class->remove_part = multipart_remove_part;
class->remove_part_at = multipart_remove_part_at;
class->get_part = multipart_get_part;
class->get_number = multipart_get_number;
@@ -399,28 +386,6 @@ camel_multipart_add_part (CamelMultipart *multipart,
}
/**
- * camel_multipart_remove_part:
- * @multipart: a #CamelMultipart object
- * @part: a #CamelMimePart to remove
- *
- * Removes @part from @multipart.
- **/
-void
-camel_multipart_remove_part (CamelMultipart *multipart,
- CamelMimePart *part)
-{
- CamelMultipartClass *class;
-
- g_return_if_fail (CAMEL_IS_MULTIPART (multipart));
- g_return_if_fail (CAMEL_IS_MIME_PART (part));
-
- class = CAMEL_MULTIPART_GET_CLASS (multipart);
- g_return_if_fail (class->remove_part != NULL);
-
- class->remove_part (multipart, part);
-}
-
-/**
* camel_multipart_remove_part_at:
* @multipart: a #CamelMultipart object
* @index: a zero-based index indicating the part to remove
diff --git a/camel/camel-multipart.h b/camel/camel-multipart.h
index 59a9e9d..3f9396e 100644
--- a/camel/camel-multipart.h
+++ b/camel/camel-multipart.h
@@ -71,7 +71,6 @@ struct _CamelMultipartClass {
/* Virtual methods */
void (*add_part) (CamelMultipart *multipart, CamelMimePart *part);
- void (*remove_part) (CamelMultipart *multipart, CamelMimePart *part);
CamelMimePart * (*remove_part_at) (CamelMultipart *multipart, guint index);
CamelMimePart * (*get_part) (CamelMultipart *multipart, guint index);
guint (*get_number) (CamelMultipart *multipart);
@@ -88,8 +87,6 @@ GType camel_multipart_get_type (void);
CamelMultipart * camel_multipart_new (void);
void camel_multipart_add_part (CamelMultipart *multipart,
CamelMimePart *part);
-void camel_multipart_remove_part (CamelMultipart *multipart,
- CamelMimePart *part);
CamelMimePart * camel_multipart_remove_part_at (CamelMultipart *multipart,
guint index);
CamelMimePart * camel_multipart_get_part (CamelMultipart *multipart,
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index e8ced52..6223b08 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -1791,7 +1791,6 @@ camel_multipart_signed_get_type
CamelMultipart
camel_multipart_new
camel_multipart_add_part
-camel_multipart_remove_part
camel_multipart_remove_part_at
camel_multipart_get_part
camel_multipart_get_number
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]