summaryrefslogtreecommitdiff
path: root/Build/source/texk/web2c/xetexdir/image/jpegimage.c
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-02-15 14:05:55 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2015-02-15 14:05:55 +0000
commit37879b019497485163b89aa84d3c4302d039445b (patch)
tree990f3eeaade5c3ee9e258f01881ebba24f7f6894 /Build/source/texk/web2c/xetexdir/image/jpegimage.c
parent8ecc5d7f7166562ae51db2073dc5b73e3bbd12d8 (diff)
xetexdir/image/jpegimage.c: Remove unused function
git-svn-id: svn://tug.org/texlive/trunk@36281 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source/texk/web2c/xetexdir/image/jpegimage.c')
-rw-r--r--Build/source/texk/web2c/xetexdir/image/jpegimage.c32
1 files changed, 0 insertions, 32 deletions
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
@@ -113,38 +113,6 @@ check_for_jpeg (FILE *fp)
}
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)
{
j_info->width = 0;