[dia] [warningectomy] unused function 'no_import_pdf'



commit 8885246341cb14c147b7dfff4d00e5d67e3b34ca
Author: Hans Breuer <hans breuer org>
Date:   Fri Oct 3 21:49:47 2014 +0200

    [warningectomy] unused function 'no_import_pdf'
    
    pdf.c:27:1: warning: unused function 'no_import_pdf' [-Wunused-function]
    no_import_pdf(const gchar *filename, DiagramData *dia, DiaContext *ctx, void* user_data)
    ^

 plug-ins/pdf/pdf.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/pdf/pdf.c b/plug-ins/pdf/pdf.c
index fd5b0ec..34c9151 100644
--- a/plug-ins/pdf/pdf.c
+++ b/plug-ins/pdf/pdf.c
@@ -23,12 +23,14 @@
 #include "filter.h"
 #include "plug-ins.h"
 
+#ifndef HAVE_POPPLER
 static gboolean
 no_import_pdf(const gchar *filename, DiagramData *dia, DiaContext *ctx, void* user_data)
 {
   dia_context_add_message (ctx, _("PDF import not available."));
   return FALSE;
 }
+#endif
 
 gboolean import_pdf(const gchar *filename, DiagramData *dia, DiaContext *ctx, void* user_data);
 
@@ -58,3 +60,4 @@ dia_plugin_init(PluginInfo *info)
   filter_register_import(&pdf_import_filter);
   return DIA_PLUGIN_INIT_OK;
 }
+


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