BUG 2412 - Remove CompositeNode from sal-dom-*
[controller.git] / opendaylight / md-sal / sal-dom-broker / src / main / java / org / opendaylight / controller / sal / dom / broker / ProviderContextImpl.java
index b8bb279297cf835cb185d909d6eaf280dccc59d7..0c46c67948a7c41abc8a9a5e0091884b73c11368 100644 (file)
@@ -7,20 +7,10 @@
  */
 package org.opendaylight.controller.sal.dom.broker;
 
-import java.util.HashSet;
-import java.util.Set;
-
 import org.opendaylight.controller.sal.core.api.Broker.ProviderSession;
-import org.opendaylight.controller.sal.core.api.Broker.RoutedRpcRegistration;
-import org.opendaylight.controller.sal.core.api.Broker.RpcRegistration;
 import org.opendaylight.controller.sal.core.api.Provider;
-import org.opendaylight.controller.sal.core.api.RpcImplementation;
-import org.opendaylight.controller.sal.core.api.RpcRegistrationListener;
-import org.opendaylight.yangtools.concepts.ListenerRegistration;
-import org.opendaylight.yangtools.yang.common.QName;
 
 class ProviderContextImpl extends ConsumerContextImpl implements ProviderSession {
-    private final Set<RpcRegistrationWrapper> registrations = new HashSet<>();
     private final Provider provider;
 
     public ProviderContextImpl(final Provider provider, final BrokerImpl broker) {
@@ -28,51 +18,8 @@ class ProviderContextImpl extends ConsumerContextImpl implements ProviderSession
         this.provider = provider;
     }
 
-    @Override
-    public RpcRegistrationWrapper addRpcImplementation(final QName rpcType,
-            final RpcImplementation implementation) throws IllegalArgumentException {
-        final RpcRegistration origReg = getBrokerChecked().getRouter()
-                .addRpcImplementation(rpcType, implementation);
-        final RpcRegistrationWrapper newReg = new RpcRegistrationWrapper(
-                origReg);
-        registrations.add(newReg);
-        return newReg;
-    }
-
-    protected boolean removeRpcImplementation(final RpcRegistrationWrapper implToRemove) {
-        return registrations.remove(implToRemove);
-    }
-
     @Override
     public void close() {
-        for (final RpcRegistrationWrapper reg : registrations) {
-            reg.close();
-        }
-    }
-
-    @Override
-    public RoutedRpcRegistration addMountedRpcImplementation(
-            final QName rpcType, final RpcImplementation implementation) {
-        throw new UnsupportedOperationException(
-                "TODO: auto-generated method stub");
-
-    }
-
-    @Override
-    public RoutedRpcRegistration addRoutedRpcImplementation(
-            final QName rpcType, final RpcImplementation implementation) {
-        return getBrokerChecked().getRouter().addRoutedRpcImplementation(rpcType, implementation);
-    }
-
-    @Override
-    public Set<QName> getSupportedRpcs() {
-        return getBrokerChecked().getRouter().getSupportedRpcs();
-    }
-
-    @Override
-    public ListenerRegistration<RpcRegistrationListener> addRpcRegistrationListener(
-            final RpcRegistrationListener listener) {
-        return getBrokerChecked().getRouter().addRpcRegistrationListener(listener);
     }
 
     /**