RpcContext and RequestContext API fine tuning
[openflowplugin.git] / openflowplugin-impl / src / main / java / org / opendaylight / openflowplugin / impl / rpc / RpcManagerImpl.java
index 82d61f17e7d13074b51cfe67d30863079d364965..dd334549e82386f29f64cc775c54cbd5f185751c 100644 (file)
@@ -17,10 +17,6 @@ public class RpcManagerImpl implements RpcManager {
 
     private DeviceContext deviceContext;
 
-    // /**
-    // * Collection of all rpc contexts which are available in rpc manager
-    // */
-    // final List<RpcContext> rpcContexts = new ArrayList<>();
 
     private final ProviderContext providerContext;
 
@@ -28,13 +24,6 @@ public class RpcManagerImpl implements RpcManager {
         this.providerContext = providerContext;
     }
 
-    // /**
-    // * @return number of rpc contexts
-    // */
-    // public int getNumberOfRpcContexts() {
-    // return rpcContexts.size();
-    // }
-
     /**
      * (non-Javadoc)
      * 
@@ -43,7 +32,6 @@ public class RpcManagerImpl implements RpcManager {
     @Override
     public void deviceConnected(final DeviceContext deviceContext) {
         final RpcContext rpcContext = new RpcContextImpl(providerContext);
-        rpcContext.setDeviceContext(deviceContext);
         MdSalRegistratorUtils.registerServices(rpcContext);
     }
 }