summaryrefslogtreecommitdiff
path: root/Build
diff options
context:
space:
mode:
authorAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-06-24 14:58:35 +0000
committerAkira Kakuto <kakuto@fuk.kindai.ac.jp>2017-06-24 14:58:35 +0000
commitde3a40e4217f81a152e9b135ed5e1ad55ca786de (patch)
treef8460a0e951830849267b49d3537cee3165664a6 /Build
parent4aa24da83f8908133dc94e357332d4e793d196db (diff)
dvipdfmx/spc_pdfm.c: Remove unused variable attr in spc_handler_pdfm_image(), from S. Hirata
git-svn-id: svn://tug.org/texlive/trunk@44681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build')
-rw-r--r--Build/source/texk/dvipdfm-x/ChangeLog4
-rw-r--r--Build/source/texk/dvipdfm-x/spc_pdfm.c8
2 files changed, 6 insertions, 6 deletions
diff --git a/Build/source/texk/dvipdfm-x/ChangeLog b/Build/source/texk/dvipdfm-x/ChangeLog
index 6a7ca7671e4..36604ba86ce 100644
--- a/Build/source/texk/dvipdfm-x/ChangeLog
+++ b/Build/source/texk/dvipdfm-x/ChangeLog
@@ -1,3 +1,7 @@
+2017-06-24 Shunsaku Hirata <shunsaku.hirata74@gmail.com>
+
+ * spc_pdfm.c: Remove unused variable attr in spc_handler_pdfm_image().
+
2017-05-19 Karl Berry <karl@tug.org>
* Version 20170318 for TeX Live 2017 release.
diff --git a/Build/source/texk/dvipdfm-x/spc_pdfm.c b/Build/source/texk/dvipdfm-x/spc_pdfm.c
index 5d14d8e9f6c..cad3ffe4768 100644
--- a/Build/source/texk/dvipdfm-x/spc_pdfm.c
+++ b/Build/source/texk/dvipdfm-x/spc_pdfm.c
@@ -1,6 +1,6 @@
/* This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
- Copyright (C) 2007-2016 by Jin-Hwan Cho and Shunsaku Hirata,
+ Copyright (C) 2007-2017 by Jin-Hwan Cho and Shunsaku Hirata,
the dvipdfmx project team.
Copyright (C) 1998, 1999 by Mark A. Wicks <mwicks@kettering.edu>
@@ -969,7 +969,7 @@ spc_handler_pdfm_image (struct spc_env *spe, struct spc_arg *args)
struct spc_pdf_ *sd = &_pdf_stat;
int xobj_id;
char *ident = NULL;
- pdf_obj *fspec, *attr = NULL;
+ pdf_obj *fspec;
transform_info ti;
load_options options = {1, 0, NULL};
@@ -1016,10 +1016,6 @@ spc_handler_pdfm_image (struct spc_env *spe, struct spc_arg *args)
skip_white(&args->curptr, args->endptr);
if (args->curptr < args->endptr) {
options.dict = parse_pdf_object(&args->curptr, args->endptr, NULL);
- if (!attr || !PDF_OBJ_DICTTYPE(attr)) {
- spc_warn(spe, "Ignore invalid attribute dictionary.");
- if (attr) pdf_release_obj(attr);
- }
}
xobj_id = pdf_ximage_findresource(pdf_string_value(fspec), options);