diff options
author | Stefano Karapetsas <[email protected]> | 2015-09-04 11:08:48 +0200 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2015-09-04 11:08:48 +0200 |
commit | ae166272bb8a52e08fc8750069a1c273177d48ea (patch) | |
tree | 204471195b02809749127965f23db3be1bffd236 /backend/pdf/ev-poppler.cc | |
parent | de87cfc36812298c0d8ad76079cc09e4b7f80aa9 (diff) | |
parent | 03f942ae10a7b210dda3e1d9989868ca48d6688d (diff) | |
download | atril-ae166272bb8a52e08fc8750069a1c273177d48ea.tar.bz2 atril-ae166272bb8a52e08fc8750069a1c273177d48ea.tar.xz |
Merge pull request #156 from monsta/stuff
some minor cleanup (mostly from upstream)
Diffstat (limited to 'backend/pdf/ev-poppler.cc')
-rw-r--r-- | backend/pdf/ev-poppler.cc | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 5f34a9b3..ea496951 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -379,7 +379,6 @@ static cairo_surface_t * pdf_document_render (EvDocument *document, EvRenderContext *rc) { - PdfDocument *pdf_document; PopplerPage *poppler_page; double width_points, height_points; gint width, height; @@ -632,7 +631,6 @@ pdf_document_get_info (EvDocument *document) PopplerPageMode mode; PopplerViewerPreferences view_prefs; PopplerPermissions permissions; - EvPage *page; char *metadata; gboolean linearized; @@ -1351,12 +1349,10 @@ pdf_document_images_get_image_mapping (EvDocumentImages *document_images, EvPage *page) { GList *retval = NULL; - PdfDocument *pdf_document; PopplerPage *poppler_page; GList *mapping_list; GList *list; - pdf_document = PDF_DOCUMENT (document_images); poppler_page = POPPLER_PAGE (page->backend_page); mapping_list = poppler_page_get_image_mapping (poppler_page); @@ -1591,7 +1587,6 @@ pdf_document_file_exporter_begin (EvFileExporter *exporter, PdfDocument *pdf_document = PDF_DOCUMENT (exporter); PdfPrintContext *ctx; #ifdef HAVE_CAIRO_PRINT - gdouble width, height; cairo_surface_t *surface = NULL; #endif @@ -1855,8 +1850,6 @@ pdf_document_print_print_page (EvDocumentPrint *document, EvPage *page, cairo_t *cr) { - PdfDocument *pdf_document = PDF_DOCUMENT (document); - poppler_page_render_for_printing (POPPLER_PAGE (page->backend_page), cr); } @@ -2110,6 +2103,7 @@ pdf_document_page_transition_iface_init (EvDocumentTransitionInterface *iface) } /* Forms */ +#if 0 static void pdf_document_get_crop_box (EvDocument *document, int page, @@ -2127,6 +2121,7 @@ pdf_document_get_crop_box (EvDocument *document, rect->y1 = poppler_rect.y1; rect->y2 = poppler_rect.y2; } +#endif static EvFormField * ev_form_field_from_poppler_field (PopplerFormField *poppler_field) @@ -2599,7 +2594,6 @@ ev_annot_from_poppler_annot (PopplerAnnot *poppler_annot, break; case POPPLER_ANNOT_FILE_ATTACHMENT: { PopplerAnnotFileAttachment *poppler_annot_attachment; - EvAnnotationAttachment *ev_annot_attachment; PopplerAttachment *poppler_attachment; gchar *data = NULL; gsize size; @@ -2830,8 +2824,6 @@ pdf_document_annotations_add_annotation (EvDocumentAnnotations *document_annotat gdouble height; PopplerColor poppler_color; GdkColor color; - time_t utime; - gchar *modified; gchar *name; pdf_document = PDF_DOCUMENT (document_annotations); @@ -3203,7 +3195,6 @@ static void pdf_document_layers_show_layer (EvDocumentLayers *document, EvLayer *layer) { - PdfDocument *pdf_document = PDF_DOCUMENT (document); PopplerLayer *poppler_layer; poppler_layer = POPPLER_LAYER (g_object_get_data (G_OBJECT (layer), "poppler-layer")); @@ -3214,7 +3205,6 @@ static void pdf_document_layers_hide_layer (EvDocumentLayers *document, EvLayer *layer) { - PdfDocument *pdf_document = PDF_DOCUMENT (document); PopplerLayer *poppler_layer; poppler_layer = POPPLER_LAYER (g_object_get_data (G_OBJECT (layer), "poppler-layer")); @@ -3225,7 +3215,6 @@ static gboolean pdf_document_layers_layer_is_visible (EvDocumentLayers *document, EvLayer *layer) { - PdfDocument *pdf_document = PDF_DOCUMENT (document); PopplerLayer *poppler_layer; poppler_layer = POPPLER_LAYER (g_object_get_data (G_OBJECT (layer), "poppler-layer")); |