changeset 1720:88b74d8512be db-changes

removed unused flavor of ServerIndex::LookupIdentifier
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 20 Oct 2015 10:24:10 +0200
parents 3b1f7e706d38
children 3bcb01028107
files OrthancServer/ServerIndex.cpp OrthancServer/ServerIndex.h
diffstat 2 files changed, 0 insertions(+), 24 deletions(-) [+]
line wrap: on
line diff
--- a/OrthancServer/ServerIndex.cpp	Tue Oct 20 10:21:41 2015 +0200
+++ b/OrthancServer/ServerIndex.cpp	Tue Oct 20 10:24:10 2015 +0200
@@ -1930,26 +1930,6 @@
   }
 
 
-  void ServerIndex::LookupIdentifier(LookupResults& result,
-                                     const DicomTag& tag,
-                                     const std::string& value)
-  {
-    result.clear();
-
-    boost::mutex::scoped_lock lock(mutex_);
-
-    std::list<int64_t> id;
-    db_.LookupIdentifier(id, tag, value);
-
-    for (std::list<int64_t>::const_iterator 
-           it = id.begin(); it != id.end(); ++it)
-    {
-      result.push_back(std::make_pair(db_.GetResourceType(*it),
-                                      db_.GetPublicId(*it)));
-    }
-  }
-
-
   StoreStatus ServerIndex::AddAttachment(const FileInfo& attachment,
                                          const std::string& publicId)
   {
--- a/OrthancServer/ServerIndex.h	Tue Oct 20 10:21:41 2015 +0200
+++ b/OrthancServer/ServerIndex.h	Tue Oct 20 10:24:10 2015 +0200
@@ -245,10 +245,6 @@
                           const DicomTag& tag,
                           const std::string& value);
 
-    void LookupIdentifier(LookupResults& result,
-                          const DicomTag& tag,
-                          const std::string& value);
-
     StoreStatus AddAttachment(const FileInfo& attachment,
                               const std::string& publicId);