From: cristy Date: Wed, 22 Jan 2014 23:04:38 +0000 (+0000) Subject: (no commit message) X-Git-Tag: 7.0.1-0~2810 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=83ce468bd83bf0028a35bd4fcc46bf96e9bdbd01;p=imagemagick --- diff --git a/coders/json.c b/coders/json.c index 981d67c90..4f1b6e930 100644 --- a/coders/json.c +++ b/coders/json.c @@ -94,17 +94,6 @@ #include "MagickCore/utility.h" #include "MagickCore/utility-private.h" #include "MagickCore/version.h" -#if defined(MAGICKCORE_LCMS_DELEGATE) -#if defined(MAGICKCORE_HAVE_LCMS_LCMS2_H) -#include -#elif defined(MAGICKCORE_HAVE_LCMS2_H) -#include "lcms2.h" -#elif defined(MAGICKCORE_HAVE_LCMS_LCMS_H) -#include -#else -#include "lcms.h" -#endif -#endif /* Forward declarations. @@ -476,12 +465,6 @@ static ssize_t PrintChannelStatistics(FILE *file,const PixelChannel channel, static MagickBooleanType EncodeImageAttributes(Image *image,FILE *file, ExceptionInfo *exception) { -#if defined(MAGICKCORE_LCMS_DELEGATE) -#if defined(LCMS_VERSION) && (LCMS_VERSION < 2000) -#define cmsUInt32Number DWORD -#endif -#endif - char color[MaxTextExtent], format[MaxTextExtent], @@ -1180,45 +1163,6 @@ static MagickBooleanType EncodeImageAttributes(Image *image,FILE *file, continue; (void) FormatLocaleFile(file," Profile-%s: %.20g bytes\n",name, (double) GetStringInfoLength(profile)); -#if defined(MAGICKCORE_LCMS_DELEGATE) - if ((LocaleCompare(name,"icc") == 0) || - (LocaleCompare(name,"icm") == 0)) - { - cmsHPROFILE - icc_profile; - - icc_profile=cmsOpenProfileFromMem(GetStringInfoDatum(profile), - (cmsUInt32Number) GetStringInfoLength(profile)); - if (icc_profile != (cmsHPROFILE *) NULL) - { -#if defined(LCMS_VERSION) && (LCMS_VERSION < 2000) - const char - *name; - - name=cmsTakeProductName(icc_profile); - if (name != (const char *) NULL) - (void) FormatLocaleFile(file," %s\n",name); -#else - char - info[MaxTextExtent]; - - (void) cmsGetProfileInfoASCII(icc_profile,cmsInfoDescription, - "en","US",info,MaxTextExtent); - (void) FormatLocaleFile(file," Description: %s\n",info); - (void) cmsGetProfileInfoASCII(icc_profile,cmsInfoManufacturer, - "en","US",info,MaxTextExtent); - (void) FormatLocaleFile(file," Manufacturer: %s\n",info); - (void) cmsGetProfileInfoASCII(icc_profile,cmsInfoModel,"en", - "US",info,MaxTextExtent); - (void) FormatLocaleFile(file," Model: %s\n",info); - (void) cmsGetProfileInfoASCII(icc_profile,cmsInfoCopyright, - "en","US",info,MaxTextExtent); - (void) FormatLocaleFile(file," Copyright: %s\n",info); -#endif - (void) cmsCloseProfile(icc_profile); - } - } -#endif if (LocaleCompare(name,"iptc") == 0) { char