]> granicus.if.org Git - imagemagick/commitdiff
(no commit message)
authorcristy <urban-warrior@git.imagemagick.org>
Sun, 26 Aug 2012 21:27:29 +0000 (21:27 +0000)
committercristy <urban-warrior@git.imagemagick.org>
Sun, 26 Aug 2012 21:27:29 +0000 (21:27 +0000)
MagickCore/pixel-accessor.h
MagickCore/pixel.c

index 2137af335ffb00c86ee831a3badba3d48b7ee475..f2d959bd6d0f53579c3f67f7ea01b5d6ba9d7bc5 100644 (file)
@@ -600,12 +600,6 @@ static inline void SetPixelChannelTraits(Image *image,
   image->channel_map[channel].traits=traits;
 }
 
-static inline void SetPixelChannelMapTraits(Image *image,
-  const PixelChannel channel,const PixelTrait traits)
-{
-  image->channel_map[channel].traits=traits;
-}
-
 static inline void SetPixelCr(const Image *restrict image,const Quantum cr,
   Quantum *restrict pixel)
 {
index 95bc8a73fbec32a8fbe44d2aad2fa47d0322e199..10f2ed84bf5c9f07e3f39df206505e835063d9b6 100644 (file)
@@ -5771,15 +5771,15 @@ MagickExport void SetPixelChannelMapMask(Image *image,
       channel;
 
     channel=GetPixelChannelMapChannel(image,i);
-    SetPixelChannelMapTraits(image,channel,
+    SetPixelChannelTraits(image,channel,
       GetChannelBit(channel_mask,channel) == 0 ? CopyPixelTrait :
       image->matte == MagickFalse || (channel == AlphaPixelChannel) ?
       UpdatePixelTrait : (PixelTrait) (UpdatePixelTrait | BlendPixelTrait));
   }
   if (image->storage_class == PseudoClass)
-    SetPixelChannelMapTraits(image,IndexPixelChannel,CopyPixelTrait);
+    SetPixelChannelTraits(image,IndexPixelChannel,CopyPixelTrait);
   if (image->mask != MagickFalse)
-    SetPixelChannelMapTraits(image,MaskPixelChannel,CopyPixelTrait);
+    SetPixelChannelTraits(image,MaskPixelChannel,CopyPixelTrait);
   if (image->debug != MagickFalse)
     LogPixelChannels(image);
 }