diff Core/Images/IImageWriter.h @ 2083:bfeacb51af20

cleaning up code
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 08 Sep 2016 16:32:13 +0200
parents d2a0c41869ab
children baf8dd89b4e0
line wrap: on
line diff
--- a/Core/Images/IImageWriter.h	Thu Sep 08 16:27:22 2016 +0200
+++ b/Core/Images/IImageWriter.h	Thu Sep 08 16:32:13 2016 +0200
@@ -33,7 +33,6 @@
 #pragma once
 
 #include "ImageAccessor.h"
-#include "../Toolbox.h"
 
 #include <boost/noncopyable.hpp>
 
@@ -54,16 +53,7 @@
                                      unsigned int height,
                                      unsigned int pitch,
                                      PixelFormat format,
-                                     const void* buffer)
-    {
-#if !defined(ORTHANC_SANDBOXED) || ORTHANC_SANDBOXED != 1
-     std::string compressed;
-      WriteToMemoryInternal(compressed, width, height, pitch, format, buffer);
-      Toolbox::WriteFile(compressed, path);
-#else
-      throw OrthancException(ErrorCode_CannotWriteFile);  // Unavailable in sandboxed environments
-#endif
-    }
+                                     const void* buffer);
 
   public:
     virtual ~IImageWriter()