diff Plugin/ResourceHierarchyCache.cpp @ 78:a2e5ea1869bd

fix build
author Alain Mazy <am@osimis.io>
date Wed, 15 Mar 2023 20:27:43 +0100
parents 94a9484d7f8f
children 7381a7674b36
line wrap: on
line diff
--- a/Plugin/ResourceHierarchyCache.cpp	Wed Mar 15 16:36:42 2023 +0100
+++ b/Plugin/ResourceHierarchyCache.cpp	Wed Mar 15 20:27:43 2023 +0100
@@ -194,6 +194,7 @@
     }
   }
 
+#if BUILD_UNIT_TESTS == 1
   void ResourceHierarchyCache::AddOrthancDicomMapping(Orthanc::ResourceType level,
                                                       const std::string& orthancId,
                                                       const std::string& dicomUid)
@@ -208,6 +209,6 @@
   {
     cache_->Store(ComputeKey(childLevel, childOrthancId), parentOrthancId, 0 /* no expiration */);
   }
-
+#endif
 
 }