[evolution-data-server] Remove unused camel_index_cursor_reset().
- From: Matthew Barnes <mbarnes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution-data-server] Remove unused camel_index_cursor_reset().
- Date: Wed, 2 Oct 2013 02:51:06 +0000 (UTC)
commit 3b2f7a280e5332873074d78068b889c8448675f7
Author: Matthew Barnes <mbarnes redhat com>
Date: Tue Oct 1 22:32:26 2013 -0400
Remove unused camel_index_cursor_reset().
camel/camel-index.c | 12 ------------
camel/camel-index.h | 2 --
camel/camel-text-index.c | 28 ----------------------------
docs/reference/camel/camel-sections.txt | 1 -
4 files changed, 0 insertions(+), 43 deletions(-)
---
diff --git a/camel/camel-index.c b/camel/camel-index.c
index 39ad928..6fedd00 100644
--- a/camel/camel-index.c
+++ b/camel/camel-index.c
@@ -473,15 +473,3 @@ camel_index_cursor_next (CamelIndexCursor *idc)
return class->next (idc);
}
-void
-camel_index_cursor_reset (CamelIndexCursor *idc)
-{
- CamelIndexCursorClass *class;
-
- g_return_if_fail (CAMEL_IS_INDEX_CURSOR (idc));
-
- class = CAMEL_INDEX_CURSOR_GET_CLASS (idc);
- g_return_if_fail (class->reset != NULL);
-
- class->reset (idc);
-}
diff --git a/camel/camel-index.h b/camel/camel-index.h
index a851aec..64c8a43 100644
--- a/camel/camel-index.h
+++ b/camel/camel-index.h
@@ -111,12 +111,10 @@ struct _CamelIndexCursorClass {
CamelObjectClass parent;
const gchar * (*next) (CamelIndexCursor *idc);
- void (*reset) (CamelIndexCursor *idc);
};
GType camel_index_cursor_get_type (void);
const gchar *camel_index_cursor_next (CamelIndexCursor *idc);
-void camel_index_cursor_reset (CamelIndexCursor *idc);
/* ********************************************************************** */
diff --git a/camel/camel-text-index.c b/camel/camel-text-index.c
index a97589c..459c249 100644
--- a/camel/camel-text-index.c
+++ b/camel/camel-text-index.c
@@ -1683,20 +1683,6 @@ text_index_cursor_next (CamelIndexCursor *idc)
}
static void
-text_index_cursor_reset (CamelIndexCursor *idc)
-{
- CamelTextIndexCursorPrivate *p = CAMEL_TEXT_INDEX_CURSOR_GET_PRIVATE (idc);
-
- g_free (p->records);
- p->records = NULL;
- g_free (p->current);
- p->current = NULL;
- p->record_count = 0;
- p->record_index = 0;
- p->next = p->first;
-}
-
-static void
camel_text_index_cursor_class_init (CamelTextIndexCursorClass *class)
{
GObjectClass *object_class;
@@ -1709,7 +1695,6 @@ camel_text_index_cursor_class_init (CamelTextIndexCursorClass *class)
index_cursor_class = CAMEL_INDEX_CURSOR_CLASS (class);
index_cursor_class->next = text_index_cursor_next;
- index_cursor_class->reset = text_index_cursor_reset;
}
static void
@@ -1794,18 +1779,6 @@ text_index_key_cursor_next (CamelIndexCursor *idc)
}
static void
-text_index_key_cursor_reset (CamelIndexCursor *idc)
-{
- CamelTextIndexKeyCursorPrivate *p = CAMEL_TEXT_INDEX_KEY_CURSOR_GET_PRIVATE (idc);
-
- p->keyid = 0;
- p->flags = 0;
- p->data = 0;
- g_free (p->current);
- p->current = NULL;
-}
-
-static void
camel_text_index_key_cursor_class_init (CamelTextIndexKeyCursorClass *class)
{
GObjectClass *object_class;
@@ -1819,7 +1792,6 @@ camel_text_index_key_cursor_class_init (CamelTextIndexKeyCursorClass *class)
index_cursor_class = CAMEL_INDEX_CURSOR_CLASS (class);
index_cursor_class->next = text_index_key_cursor_next;
- index_cursor_class->reset = text_index_key_cursor_reset;
}
static void
diff --git a/docs/reference/camel/camel-sections.txt b/docs/reference/camel/camel-sections.txt
index fabc7b8..cdb1309 100644
--- a/docs/reference/camel/camel-sections.txt
+++ b/docs/reference/camel/camel-sections.txt
@@ -1124,7 +1124,6 @@ CamelIndex
CamelIndexNorm
CamelIndexCursor
camel_index_cursor_next
-camel_index_cursor_reset
CamelIndexName
camel_index_name_new
camel_index_name_add_word
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]