diff Plugin/PluginContext.h @ 5:5e6de82bb10f

use of user properties instead of BidirectionalPeers option
author Sebastien Jodogne <s.jodogne@gmail.com>
date Tue, 18 Sep 2018 15:39:02 +0200
parents 95226b754d9e
children 4c3437217518
line wrap: on
line diff
--- a/Plugin/PluginContext.h	Mon Sep 17 14:42:57 2018 +0200
+++ b/Plugin/PluginContext.h	Tue Sep 18 15:39:02 2018 +0200
@@ -31,8 +31,6 @@
   class PluginContext : public boost::noncopyable
   {
   private:
-    typedef std::map<std::string, std::string>  BidirectionalPeers;
-    
     // Runtime structures
     OrthancPluginContext*    context_;
     OrthancInstancesCache    cache_;
@@ -43,7 +41,6 @@
     // Configuration
     size_t                   threadsCount_;
     size_t                   targetBucketSize_;
-    BidirectionalPeers       bidirectionalPeers_;
 
   
     PluginContext(OrthancPluginContext* context,
@@ -90,20 +87,6 @@
       return targetBucketSize_;
     }
 
-    void AddBidirectionalPeer(const std::string& remotePeer,
-                              const std::string& remoteSelf)
-    {
-      bidirectionalPeers_[remotePeer] = remoteSelf;
-    }
-
-    void LoadBidirectionalPeers(const BidirectionalPeers& peers)
-    {
-      bidirectionalPeers_ = peers;
-    }
-
-    bool LookupBidirectionalPeer(std::string& remoteSelf,
-                                 const std::string& remotePeer) const;
-  
     static void Initialize(OrthancPluginContext* context,
                            size_t threadsCount,
                            size_t targetBucketSize,