Mercurial > hg > orthanc-stone
comparison Framework/Loaders/LoaderCache.cpp @ 1439:4e233e3ea53b
Dead code removal
author | Benjamin Golinvaux <bgo@osimis.io> |
---|---|
date | Tue, 19 May 2020 15:31:38 +0200 |
parents | 96044a18b98d |
children | 30deba7bc8e2 |
comparison
equal
deleted
inserted
replaced
1438:96044a18b98d | 1439:4e233e3ea53b |
---|---|
162 LOG(ERROR) << "Unknown exception in LoaderCache"; | 162 LOG(ERROR) << "Unknown exception in LoaderCache"; |
163 throw; | 163 throw; |
164 } | 164 } |
165 } | 165 } |
166 | 166 |
167 /** | |
168 This method allows to convert a list of string into a string by | |
169 sorting the strings then joining them | |
170 */ | |
171 static std::string SortAndJoin(const std::vector<std::string>& stringList) | |
172 { | |
173 if (stringList.size() == 0) | |
174 { | |
175 return ""; | |
176 } | |
177 else | |
178 { | |
179 std::vector<std::string> sortedStringList = stringList; | |
180 std::sort(sortedStringList.begin(), sortedStringList.end()); | |
181 std::stringstream s; | |
182 s << sortedStringList[0]; | |
183 for (size_t i = 1; i < sortedStringList.size(); ++i) | |
184 { | |
185 s << "-" << sortedStringList[i]; | |
186 } | |
187 return s.str(); | |
188 } | |
189 } | |
190 | |
191 std::string LoaderCache::BuildDicomStructureSetLoaderKey( | 167 std::string LoaderCache::BuildDicomStructureSetLoaderKey( |
192 const std::string& instanceUuid, | 168 const std::string& instanceUuid, |
193 const std::string& uniqueKey) | 169 const std::string& uniqueKey) |
194 { | 170 { |
195 return instanceUuid + "_" + uniqueKey; | 171 return instanceUuid + "_" + uniqueKey; |