[evince] Remove unused variables from mdvi-lib



commit c372ed24e43af7202399e0b193a79a8b0d788f79
Author: Hib Eris <hib hiberis nl>
Date:   Mon Dec 19 14:03:10 2011 +0100

    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 insertions(+), 6 deletions(-)
---
diff --git a/backend/dvi/mdvi-lib/bitmap.c b/backend/dvi/mdvi-lib/bitmap.c
index 6edec1d..4417a75 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 703a9c8..4f1b49c 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 8c2a30b..c23d9fe 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);



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