Mercurial > hg > orthanc-stone
changeset 2175:43ef60388fa2
removed useless function
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 22 Oct 2024 21:54:39 +0200 |
parents | 2410a171ebfb |
children | c5f94c10cd61 |
files | OrthancStone/Sources/Toolbox/DicomInstanceParameters.cpp |
diffstat | 1 files changed, 0 insertions(+), 26 deletions(-) [+] |
line wrap: on
line diff
--- 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);