From 37879b019497485163b89aa84d3c4302d039445b Mon Sep 17 00:00:00 2001 From: Akira Kakuto Date: Sun, 15 Feb 2015 14:05:55 +0000 Subject: xetexdir/image/jpegimage.c: Remove unused function git-svn-id: svn://tug.org/texlive/trunk@36281 c570f23f-e606-0410-a88d-b1316a301751 --- Build/source/texk/web2c/xetexdir/image/jpegimage.c | 32 ---------------------- 1 file changed, 32 deletions(-) (limited to 'Build') diff --git a/Build/source/texk/web2c/xetexdir/image/jpegimage.c b/Build/source/texk/web2c/xetexdir/image/jpegimage.c index 2bff54548a4..feccb1aa4b8 100644 --- a/Build/source/texk/web2c/xetexdir/image/jpegimage.c +++ b/Build/source/texk/web2c/xetexdir/image/jpegimage.c @@ -112,38 +112,6 @@ check_for_jpeg (FILE *fp) return 1; } -static void -jpeg_get_density (struct JPEG_info *j_info, - double *xdensity, double *ydensity) -{ - *xdensity = *ydensity = 1.0; - - if (j_info->flags & HAVE_APPn_JFIF) { - struct JPEG_APPn_JFIF *app_data; - int i; - for (i = 0; i < j_info->num_appn; i++) { - if (j_info->appn[i].marker == JM_APP0 && - j_info->appn[i].app_sig == JS_APPn_JFIF) - break; - } - if (i < j_info->num_appn) { - app_data = (struct JPEG_APPn_JFIF *)j_info->appn[i].app_data; - switch (app_data->units) { - case 1: /* pixels per inch */ - *xdensity = 72.0 / app_data->Xdensity; - *ydensity = 72.0 / app_data->Ydensity; - break; - case 2: /* pixels per centimeter */ - *xdensity = 72.0 / 2.54 / app_data->Xdensity; - *ydensity = 72.0 / 2.54 / app_data->Ydensity; - break; - default: - break; - } - } - } -} - static void JPEG_info_init (struct JPEG_info *j_info) { -- cgit v1.2.3