Mercurial > hg > orthanc
diff OrthancServer/ServerToolbox.cpp @ 226:8a26a8e85edf
refactoring to read files
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 09:45:29 +0100 |
parents | 4ce7fdcc8879 |
children | 7c1faef915a4 |
line wrap: on
line diff
--- a/OrthancServer/ServerToolbox.cpp Thu Nov 29 22:28:05 2012 +0100 +++ b/OrthancServer/ServerToolbox.cpp Fri Nov 30 09:45:29 2012 +0100 @@ -36,20 +36,6 @@ namespace Orthanc { - void ReadJson(Json::Value& target, - const FileStorage& storage, - const std::string& fileUuid) - { - std::string s; - storage.ReadFile(s, fileUuid); - - Json::Reader reader; - if (!reader.parse(s, target)) - { - throw OrthancException("Corrupted JSON file"); - } - } - void SimplifyTags(Json::Value& target, const Json::Value& source) {