# HG changeset patch # User Sebastien Jodogne # Date 1729626879 -7200 # Node ID 43ef60388fa21e62b5e7d44d3e195d36b5733eeb # Parent 2410a171ebfb356444bdcbd448270596af59f66d removed useless function diff -r 2410a171ebfb -r 43ef60388fa2 OrthancStone/Sources/Toolbox/DicomInstanceParameters.cpp --- a/OrthancStone/Sources/Toolbox/DicomInstanceParameters.cpp Tue Oct 22 21:52:34 2024 +0200 +++ b/OrthancStone/Sources/Toolbox/DicomInstanceParameters.cpp Tue Oct 22 21:54:39 2024 +0200 @@ -824,32 +824,6 @@ } - static const Json::Value* LookupDicomWebSingleValue(const Json::Value& dicomweb, - const std::string& tag, - const std::string& vr) - { - static const char* const VALUE = "Value"; - static const char* const VR = "vr"; - - if (dicomweb.type() == Json::objectValue && - dicomweb.isMember(tag) && - dicomweb[tag].type() == Json::objectValue && - dicomweb[tag].isMember(VALUE) && - dicomweb[tag].isMember(VR) && - dicomweb[tag][VR].type() == Json::stringValue && - dicomweb[tag][VR].asString() == vr && - dicomweb[tag][VALUE].type() == Json::arrayValue && - dicomweb[tag][VALUE].size() == 1u) - { - return &dicomweb[tag][VALUE][0]; - } - else - { - return NULL; - } - } - - void DicomInstanceParameters::EnrichUsingDicomWeb(const Json::Value& dicomweb) { DicomWebDataset dataset(dicomweb);