From a7ab3f4e553d084612a0392d82ca9871a75f26ee Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Wed, 30 Jan 2019 07:26:40 +0100 Subject: [PATCH] Removed deprecated code. --- coders/tga.c | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/coders/tga.c b/coders/tga.c index 9ae089636..87c6f0ac8 100644 --- a/coders/tga.c +++ b/coders/tga.c @@ -724,8 +724,7 @@ static MagickBooleanType WriteTGAImage(const ImageInfo *image_info,Image *image, compression; const char - *comment, - *value; + *comment; const double midpoint = QuantumRange/2.0; @@ -846,19 +845,6 @@ static MagickBooleanType WriteTGAImage(const ImageInfo *image_info,Image *image, if ((image->orientation == TopLeftOrientation) || (image->orientation == TopRightOrientation)) tga_info.attributes|=(1UL << 5); - value=GetImageArtifact(image,"tga:image-origin"); /* deprecated */ - if (value != (const char *) NULL) - { - OrientationType - origin; - - origin=(OrientationType) ParseCommandOption(MagickOrientationOptions, - MagickFalse,value); - if (origin == BottomRightOrientation || origin == TopRightOrientation) - tga_info.attributes|=(1UL << 4); - if (origin == TopLeftOrientation || origin == TopRightOrientation) - tga_info.attributes|=(1UL << 5); - } if ((image->columns > 65535) || (image->rows > 65535)) ThrowWriterException(ImageError,"WidthOrHeightExceedsLimit"); /* -- 2.40.0