diff OrthancServer/DatabaseWrapperBase.cpp @ 1711:5ebd6cbb3da8 db-changes

Backed out changeset 2ad22b2970a2
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 16 Oct 2015 17:36:07 +0200
parents 2ad22b2970a2
children 4db9200c7f46
line wrap: on
line diff
--- a/OrthancServer/DatabaseWrapperBase.cpp	Tue Oct 13 17:48:30 2015 +0200
+++ b/OrthancServer/DatabaseWrapperBase.cpp	Fri Oct 16 17:36:07 2015 +0200
@@ -33,8 +33,6 @@
 #include "PrecompiledHeadersServer.h"
 #include "DatabaseWrapperBase.h"
 
-#include "../Core/DicomFormat/DicomArray.h"
-
 #include <stdio.h>
 
 namespace Orthanc
@@ -311,13 +309,6 @@
       s.BindInt64(0, id);
       s.Run();
     }
-
-    // New in DB v6 (Orthanc >= 0.9.5)
-    {
-      SQLite::Statement s(db_, SQLITE_FROM_HERE, "DELETE FROM SearchableStudies WHERE id=?");
-      s.BindInt64(0, id);
-      s.Run();
-    }
   }
 
 
@@ -721,27 +712,4 @@
       target.push_back(s.ColumnInt64(0));
     }
   }
-
-
-  void DatabaseWrapperBase::StoreStudyModule(int64_t id,
-                                             const DicomMap& module)
-  {
-    DicomArray a(module);
-
-    for (size_t i = 0; i < a.GetSize(); i++)
-    {
-      const DicomTag& tag = a.GetElement(i).GetTag();
-      const DicomValue& value = a.GetElement(i).GetValue();
-
-      if (!value.IsNull())
-      {
-        SQLite::Statement s(db_, SQLITE_FROM_HERE, "INSERT INTO SearchableStudies VALUES(?, ?, ?, ?)");
-        s.BindInt64(0, id);
-        s.BindInt(1, tag.GetGroup());
-        s.BindInt(2, tag.GetElement());
-        s.BindString(3, value.AsString());
-        s.Run();
-      }
-    }
-  }
 }