From: Christian Persch Date: Sat, 6 Jun 2009 18:40:22 +0000 (+0200) Subject: Removed unused function to fix -Wall -Werror build X-Git-Tag: EVINCE_2_27_3~28 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=1413376a6a077ed6151171bfee1f50a37dad2723;p=evince.git Removed unused function to fix -Wall -Werror build --- diff --git a/backend/dvi/mdvi-lib/common.c b/backend/dvi/mdvi-lib/common.c index 2382dd5f..c1bdff02 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)