[evince] Removed unused function to fix -Wall -Werror build



commit 1413376a6a077ed6151171bfee1f50a37dad2723
Author: Christian Persch <chpe gnome org>
Date:   Sat Jun 6 20:40:22 2009 +0200

    Removed unused function to fix -Wall -Werror build

 backend/dvi/mdvi-lib/common.c |   20 --------------------
 1 files changed, 0 insertions(+), 20 deletions(-)
---
diff --git a/backend/dvi/mdvi-lib/common.c b/backend/dvi/mdvi-lib/common.c
index 2382dd5..c1bdff0 100644
--- a/backend/dvi/mdvi-lib/common.c
+++ b/backend/dvi/mdvi-lib/common.c
@@ -22,8 +22,6 @@
 
 #include "common.h"
 
-static Int32	scaled_width(Int32 fix, int scale);
-
 long	fsgetn(FILE *p, size_t n)
 {
 	long	v;
@@ -117,24 +115,6 @@ char	*read_alloc_bcpl(FILE *in, size_t maxlen, size_t *size)
 	return buffer;
 }
 
-/* stolen from dvips */
-static Int32	scaled_width(Int32 fix, int scale)
-{
-	Int32	al, bl;
-	
-	if(fix < 0)
-		return -scaled_width(-fix, scale);
-	if(scale < 0)
-		return -scaled_width(fix, -scale);
-	al = fix & 32767;
-	bl = scale & 32767;
-	al >>= 15;
-	bl >>= 15;
-	
-	return (((al*bl / 32768) + fix*bl + al*scale) / 32 + 
-		fix * scale / 1024);
-}
-
 /* buffers */
 
 void	buff_free(Buffer *buf)



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