diff OrthancServer/Sources/ServerIndex.h @ 4561:02510325d869 db-changes

removed function wrappers for transactions in ServerIndex
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 04 Mar 2021 18:45:48 +0100
parents 929409e40008
children e19f11e08226
line wrap: on
line diff
--- a/OrthancServer/Sources/ServerIndex.h	Thu Mar 04 18:42:25 2021 +0100
+++ b/OrthancServer/Sources/ServerIndex.h	Thu Mar 04 18:45:48 2021 +0100
@@ -449,16 +449,8 @@
 
       virtual void Apply(ReadWriteTransaction& transaction) = 0;
     };
-
-
-    typedef void (*ReadOnlyFunction) (ReadOnlyTransaction& transaction);  // TODO - Is this useful?
-    typedef void (*ReadWriteFunction) (ReadWriteTransaction& transaction);  // TODO - Is this useful?
-
     
   private:
-    class ReadOnlyWrapper;  // TODO - Is this useful?
-    class ReadWriteWrapper;  // TODO - Is this useful?
-
     void ApplyInternal(IReadOnlyOperations* readOperations,
                        IReadWriteOperations* writeOperations);
     
@@ -469,10 +461,6 @@
   
     void Apply(IReadWriteOperations& operations);
 
-    void Apply(ReadOnlyFunction func);
-
-    void Apply(ReadWriteFunction func);
-
     bool ExpandResource(Json::Value& target,
                         const std::string& publicId,
                         ResourceType level);