From 69020e40f7255ea1f35b2288a670415f4024f445 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20R=C3=B6nnkvist?= Date: Wed, 22 Apr 2020 08:42:10 +0200 Subject: [PATCH] Revert "feat: set_image_gray" This reverts commit 517fd5ef5fb2609165c8a1e1a9fc43b4fc790645. --- src/wand/magick.rs | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/wand/magick.rs b/src/wand/magick.rs index 75b7a34..6ac026e 100644 --- a/src/wand/magick.rs +++ b/src/wand/magick.rs @@ -743,14 +743,6 @@ impl MagickWand { Ok(bytes) } - pub fn set_image_gray (&self) -> Result<(), &'static str> { - let result = unsafe { bindings::SetImageGray(self.wand) }; - match result { - MagickBooleanType_MagickTrue => Ok(()), - _ => Err("Couldn't set image to gray") - } - } - mutations!( /// Set the image colorspace, transforming (unlike `set_image_colorspace`) image data in /// the process.