From: dirk Date: Tue, 30 Aug 2016 18:43:26 +0000 (+0200) Subject: Removed unused text variable. X-Git-Tag: 7.0.3-0~11 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=54e9d129b19302dee996f907edf63b9ad87b929c;p=imagemagick Removed unused text variable. --- diff --git a/MagickCore/annotate.c b/MagickCore/annotate.c index b98397417..ac73ae078 100644 --- a/MagickCore/annotate.c +++ b/MagickCore/annotate.c @@ -594,9 +594,6 @@ MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info, const MagickBooleanType split,TypeMetric *metrics,char **caption, ExceptionInfo *exception) { - char - *text; - MagickBooleanType digit, status; @@ -616,7 +613,6 @@ MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info, n; digit=MagickFalse; - text=AcquireString(draw_info->text); q=draw_info->text; s=(char *) NULL; for (p=(*caption); GetUTFCode(p) != 0; p+=GetUTFOctets(p)) @@ -636,7 +632,6 @@ MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info, width=(size_t) floor(metrics->width+draw_info->stroke_width+0.5); if ((width <= image->columns) || (s == (char *) NULL)) continue; - (void) strcpy(text,draw_info->text); if ((s != (char *) NULL) && (GetUTFOctets(s) == 1)) { *s='\n'; @@ -663,7 +658,6 @@ MagickExport ssize_t FormatMagickCaption(Image *image,DrawInfo *draw_info, q=draw_info->text; s=(char *) NULL; } - text=DestroyString(text); n=0; for (p=(*caption); GetUTFCode(p) != 0; p+=GetUTFOctets(p)) if (GetUTFCode(p) == '\n')