diff UnitTestsSources/FromDcmtkTests.cpp @ 3885:e23026566536 transcoding

removed unused functions
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 05 May 2020 14:52:47 +0200
parents 83061cdc7703
children b808958dff2a
line wrap: on
line diff
--- a/UnitTestsSources/FromDcmtkTests.cpp	Tue May 05 14:37:29 2020 +0200
+++ b/UnitTestsSources/FromDcmtkTests.cpp	Tue May 05 14:52:47 2020 +0200
@@ -2227,8 +2227,13 @@
   DicomAssociationParameters p;
   p.SetRemotePort(2000);
 
+  DicomStoreUserConnection scu(p);
+  scu.SetCommonClassesProposed(false);
+  scu.SetRetiredBigEndianProposed(true);
+
   DcmtkTranscoder transcoder;
-  
+
+  for (int j = 0; j < 2; j++)
   for (int i = 0; i <= DicomTransferSyntax_XML; i++)
   {
     DicomTransferSyntax a = (DicomTransferSyntax) i;
@@ -2242,10 +2247,6 @@
       std::string source;
       Orthanc::SystemToolbox::ReadFile(source, path);
 
-      DicomStoreUserConnection scu(p);
-      scu.SetCommonClassesProposed(false);
-      scu.SetRetiredBigEndianProposed(true);
-
       std::string c, i;
       try
       {