[libgepub] lib: Fix unused functions and variables warnings



commit 2691800438f28f82074526933daf59c7922e9089
Author: Bastien Nocera <hadess hadess net>
Date:   Wed Jun 21 18:32:48 2017 +0200

    lib: Fix unused functions and variables warnings
    
    https://bugzilla.gnome.org/show_bug.cgi?id=784050

 libgepub/gepub-doc.c |    1 -
 tests/test-gepub.c   |    5 ++---
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/libgepub/gepub-doc.c b/libgepub/gepub-doc.c
index b2c2d80..316a65e 100644
--- a/libgepub/gepub-doc.c
+++ b/libgepub/gepub-doc.c
@@ -175,7 +175,6 @@ gepub_doc_initable_init (GInitable     *initable,
 {
     GepubDoc *doc = GEPUB_DOC (initable);
     gchar *file;
-    gsize bufsize = 0;
     gint i = 0, len;
 
     g_assert (doc->path != NULL);
diff --git a/tests/test-gepub.c b/tests/test-gepub.c
index f3539f8..c04e403 100644
--- a/tests/test-gepub.c
+++ b/tests/test-gepub.c
@@ -61,6 +61,7 @@ update_text (GepubDoc *doc)
     }
 }
 
+#if 0
 static void
 print_replaced_text (GepubDoc *doc)
 {
@@ -73,6 +74,7 @@ print_replaced_text (GepubDoc *doc)
     printf ("\n\nREPLACED:\n%s\n", data);
     g_bytes_unref (content);
 }
+#endif
 
 static void
 button_pressed (GtkButton *button, GepubWidget *widget)
@@ -175,9 +177,6 @@ test_read (const char *path)
 
     bytes = gepub_archive_read_entry (a, file);
     if (bytes) {
-        const char *data;
-        gsize size;
-
         buffer = g_bytes_get_data (bytes, &bufsize);
         PTEST ("doc:%s\n----\n%s\n-----\n", file, buffer);
         g_bytes_unref (bytes);


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