diff Plugin/DecodedImageAdapter.cpp @ 97:ef1b27ba7dfc refactoring

Remove class "ParsedDicomFile"
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 27 Nov 2015 18:30:16 +0100
parents a6ba21a083e5
children 46ec13a1177c
line wrap: on
line diff
--- a/Plugin/DecodedImageAdapter.cpp	Fri Nov 27 18:26:55 2015 +0100
+++ b/Plugin/DecodedImageAdapter.cpp	Fri Nov 27 18:30:16 2015 +0100
@@ -25,7 +25,6 @@
 #include "../Orthanc/Core/OrthancException.h"
 #include "../Orthanc/Plugins/Samples/GdcmDecoder/OrthancImageWrapper.h"
 #include "../Orthanc/Resources/ThirdParty/base64/base64.h"
-#include "ParsedDicomImage.h"
 #include "ViewerToolbox.h"
 
 #include <boost/lexical_cast.hpp>
@@ -92,7 +91,6 @@
 
     bool ok = false;
 
-#if 1
     Json::Value tags;
     std::string dicom;
     if (!GetStringFromOrthanc(dicom, context_, "/instances/" + instanceId + "/file") ||
@@ -116,22 +114,6 @@
       }
     }   
 
-#else
-
-    ParsedDicomImage image(context_, instanceId);
-
-    Json::Value json;
-
-    if (type == CompressionType_Deflate)
-    {
-      ok = image.EncodeUsingDeflate(json, 9);
-    }
-    else if (type == CompressionType_Jpeg)
-    {
-      ok = image.EncodeUsingJpeg(json, level);
-    }
-#endif
-
     if (ok)
     {
       Json::FastWriter writer;