[libgepub/wip/cosimoc/api-rework: 5/13] doc: remove unneeded API



commit 5a963dcc53174c8f26577cc46f2e26a1a3c151fb
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Jun 18 12:18:18 2016 -0700

    doc: remove unneeded API
    
    The fact that GepubTextChunk is an object is visible to the clients of
    the API, so there's no need to have a custom wrapper to free the
    objects.

 libgepub/gepub-doc.c |   14 ++------------
 libgepub/gepub-doc.h |    1 -
 2 files changed, 2 insertions(+), 13 deletions(-)
---
diff --git a/libgepub/gepub-doc.c b/libgepub/gepub-doc.c
index 1f8c295..640e49f 100644
--- a/libgepub/gepub-doc.c
+++ b/libgepub/gepub-doc.c
@@ -491,7 +491,7 @@ gepub_doc_get_current_with_epub_uris (GepubDoc *doc, gsize *bufsize)
  * gepub_doc_get_text:
  * @doc: a #GepubDoc
  *
- * Returns: (element-type Gepub.TextChunk) (transfer full): the list of text in the current chapter, Free 
with gepub_doc_free_text().
+ * Returns: (element-type Gepub.TextChunk) (transfer full): the list of text in the current chapter.
  */
 GList *
 gepub_doc_get_text (GepubDoc *doc)
@@ -522,7 +522,7 @@ gepub_doc_get_text (GepubDoc *doc)
  * @doc: a #GepubDoc
  * @id: the resource id
  *
- * Returns: (element-type Gepub.TextChunk) (transfer full): the list of text in the current chapter, Free 
with gepub_doc_free_text().
+ * Returns: (element-type Gepub.TextChunk) (transfer full): the list of text in the current chapter.
  */
 GList *
 gepub_doc_get_text_by_id (GepubDoc *doc, gchar *id)
@@ -550,16 +550,6 @@ gepub_doc_get_text_by_id (GepubDoc *doc, gchar *id)
 }
 
 /**
- * gepub_doc_free_text:
- * @tlist: (element-type Gepub.TextChunk): a #GList
- */
-void
-gepub_doc_free_text (GList *tlist)
-{
-    g_list_free_full (tlist, (GDestroyNotify)g_object_unref);
-}
-
-/**
  * gepub_doc_go_next:
  * @doc: a #GepubDoc
  *
diff --git a/libgepub/gepub-doc.h b/libgepub/gepub-doc.h
index a0e22ab..b28afd4 100644
--- a/libgepub/gepub-doc.h
+++ b/libgepub/gepub-doc.h
@@ -56,7 +56,6 @@ gchar            *gepub_doc_get_current_mime                (GepubDoc *doc);
 GList            *gepub_doc_get_spine                       (GepubDoc *doc);
 GList            *gepub_doc_get_text                        (GepubDoc *doc);
 GList            *gepub_doc_get_text_by_id                  (GepubDoc *doc, gchar *id);
-void              gepub_doc_free_text                       (GList *tlist);
 guchar           *gepub_doc_get_current                     (GepubDoc *doc, gsize *bufsize);
 guchar           *gepub_doc_get_current_with_epub_uris      (GepubDoc *doc, gsize *bufsize);
 gboolean          gepub_doc_go_next                         (GepubDoc *doc);


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