From fd91bcc72741c6c11befcf81724639f8f3e40e4b Mon Sep 17 00:00:00 2001 From: monsta Date: Wed, 2 Sep 2015 11:30:21 +0300 Subject: libview: removed 'x' attribute from a header file --- libview/ev-view.h | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 libview/ev-view.h diff --git a/libview/ev-view.h b/libview/ev-view.h old mode 100755 new mode 100644 -- cgit v1.2.1 From 76bc1b06283335481d7826e5eac8238e3547e6dc Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Mon, 19 Dec 2011 14:03:10 +0100 Subject: Remove unused variables from mdvi-lib --- backend/dvi/mdvi-lib/bitmap.c | 2 -- backend/dvi/mdvi-lib/sp-epsf.c | 2 -- backend/dvi/mdvi-lib/tfmfile.c | 3 +-- 3 files changed, 1 insertion(+), 6 deletions(-) diff --git a/backend/dvi/mdvi-lib/bitmap.c b/backend/dvi/mdvi-lib/bitmap.c index 6edec1df..4417a75b 100644 --- a/backend/dvi/mdvi-lib/bitmap.c +++ b/backend/dvi/mdvi-lib/bitmap.c @@ -131,7 +131,6 @@ BITMAP *bitmap_convert_lsb8(Uchar *bits, int w, int h, int stride) int i; Uchar *unit; register Uchar *curr; - Uchar *end; int bytes; DEBUG((DBG_BITMAP_OPS, "convert LSB %dx%d@8 -> bitmap\n", w, h)); @@ -141,7 +140,6 @@ BITMAP *bitmap_convert_lsb8(Uchar *bits, int w, int h, int stride) /* this is the number of bytes in the original bitmap */ bytes = ROUND(w, 8); unit = (Uchar *)bm->data; - end = unit + bm->stride; curr = bits; /* we try to do this as fast as we can */ for(i = 0; i < h; i++) { diff --git a/backend/dvi/mdvi-lib/sp-epsf.c b/backend/dvi/mdvi-lib/sp-epsf.c index 703a9c8c..4f1b49cb 100644 --- a/backend/dvi/mdvi-lib/sp-epsf.c +++ b/backend/dvi/mdvi-lib/sp-epsf.c @@ -79,7 +79,6 @@ static char *parse_epsf_special(EpsfBox *box, char **ret, #define NKEYS (sizeof(keys) / sizeof(keys[0])) char *ptr; char *filename; - int quoted; double value[NKEYS]; Uchar present[NKEYS]; Buffer buffer; @@ -121,7 +120,6 @@ static char *parse_epsf_special(EpsfBox *box, char **ret, buff_init(&buffer); buff_add(&buffer, "@beginspecial ", 0); - quoted = 0; while(*ptr) { const char *keyname; char *val; diff --git a/backend/dvi/mdvi-lib/tfmfile.c b/backend/dvi/mdvi-lib/tfmfile.c index 8c2a30b2..c23d9fe0 100644 --- a/backend/dvi/mdvi-lib/tfmfile.c +++ b/backend/dvi/mdvi-lib/tfmfile.c @@ -298,7 +298,7 @@ error: static int ofm1_load_file(FILE *in, TFMInfo *info) { - int lf, lh, bc, ec, nw, nh, nd; + int lh, bc, ec, nw, nh, nd; int nco, ncw, npc; int i; int n; @@ -310,7 +310,6 @@ static int ofm1_load_file(FILE *in, TFMInfo *info) TFMChar *tch; TFMChar *end; - lf = fuget4(in); lh = fuget4(in); bc = fuget4(in); ec = fuget4(in); -- cgit v1.2.1 From ef5184fdf9b2c4db6a1496c98c291ef0245bb461 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Mon, 20 Feb 2012 21:37:37 +0100 Subject: pdf: remove unused variable --- backend/pdf/ev-poppler.cc | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index 5f34a9b3..cba4cf23 100644 --- a/backend/pdf/ev-poppler.cc +++ b/backend/pdf/ev-poppler.cc @@ -1351,7 +1351,6 @@ 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; -- cgit v1.2.1 From c6204545589077af1fe6be939a5db3e619c5fde1 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Sun, 19 Feb 2012 13:10:09 +0100 Subject: pdf: remove unused variables --- backend/pdf/ev-poppler.cc | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/backend/pdf/ev-poppler.cc b/backend/pdf/ev-poppler.cc index cba4cf23..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; @@ -1355,7 +1353,6 @@ pdf_document_images_get_image_mapping (EvDocumentImages *document_images, 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); @@ -1590,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 @@ -1854,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); } @@ -2109,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, @@ -2126,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) @@ -2598,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; @@ -2829,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); @@ -3202,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")); @@ -3213,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")); @@ -3224,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")); -- cgit v1.2.1 From f6c65751e90adaad60d0df20b9cdae690aa5690a Mon Sep 17 00:00:00 2001 From: Carlos Garcia Campos Date: Sun, 17 Feb 2013 18:46:35 +0100 Subject: xps: Remove extra call to gxps_link_get_area() --- backend/xps/xps-document.c | 1 - 1 file changed, 1 deletion(-) diff --git a/backend/xps/xps-document.c b/backend/xps/xps-document.c index fc3c15c3..53073e42 100644 --- a/backend/xps/xps-document.c +++ b/backend/xps/xps-document.c @@ -424,7 +424,6 @@ xps_document_links_get_links (EvDocumentLinks *document_links, ev_link_mapping = g_new (EvMapping, 1); gxps_link_get_area (xps_link, &area); target = gxps_link_get_target (xps_link); - gxps_link_get_area (xps_link, &area); ev_link_mapping->data = ev_link_from_target (xps_document, target); ev_link_mapping->area.x1 = area.x; -- cgit v1.2.1 From 03f942ae10a7b210dda3e1d9989868ca48d6688d Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Fri, 26 Jul 2013 22:03:54 +0200 Subject: comics: Fix -Wold-style-declaration warning --- backend/comics/comics-document.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/comics/comics-document.c b/backend/comics/comics-document.c index da872ffb..2601d356 100644 --- a/backend/comics/comics-document.c +++ b/backend/comics/comics-document.c @@ -889,7 +889,7 @@ comics_document_init (ComicsDocument *comics_document) /* Returns a list of file extensions supported by gdk-pixbuf */ static GSList* -get_supported_image_extensions() +get_supported_image_extensions(void) { GSList *extensions = NULL; GSList *formats = gdk_pixbuf_get_formats (); -- cgit v1.2.1