remove unused inUse method 37/46437/2
authorIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 4 Oct 2016 02:30:48 +0000 (19:30 -0700)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Tue, 4 Oct 2016 06:14:45 +0000 (23:14 -0700)
Change-Id: I10053b258e899324c30fff836c9ebd88c2ef216c
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
neutron-spi/src/main/java/org/opendaylight/neutron/spi/INeutronCRUD.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/AbstractNeutronInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronBgpvpnInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronL2gatewayConnectionInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronL2gatewayInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNIPSECSiteConnectionsInterface.java
transcriber/src/main/java/org/opendaylight/neutron/transcriber/NeutronVPNServiceInterface.java

index f5504ae250dd36d9dffd9e05cb36b0f8853fd569..6c71f73fd05b3e11dd1cc9b37dfa63df1c371e4a 100644 (file)
@@ -80,16 +80,4 @@ public interface INeutronCRUD<T extends INeutronObject<T>> {
      */
 
     boolean update(String uuid, T delta);
-
-    /**
-     * Applications call this interface method to determine if a Neutron object
-     * is use
-     *
-     * @param uuid
-     *            identifier of the neutron object
-     *
-     * @return boolean on whether the neutron is in use or not
-     */
-
-    boolean inUse(String uuid);
 }
index 01b1908a5707cae473b0835ff738452d335f8da3..aa09d9b91dba30171df2ff8fd4f261a0f8e70a60 100644 (file)
@@ -490,9 +490,4 @@ public abstract class AbstractNeutronInterface<T extends DataObject & Identifiab
         }
         return false;
     }
-
-    @Override
-    public boolean inUse(String uuid) {
-        return false;
-    }
 }
index d7de96e312648b63b09ce5b82bf472a8a6f4868e..fcf486363b0a346f4cfcfb1d755ab068496ae0fa 100644 (file)
@@ -42,11 +42,6 @@ public final class NeutronBgpvpnInterface extends AbstractNeutronInterface<Bgpvp
         return bgpvpns.getBgpvpn();
     }
 
-    @Override
-    public boolean inUse(String uuid) {
-        return !exists(uuid);
-    }
-
     @Override
     protected NeutronBgpvpn fromMd(Bgpvpn bgpvpn) {
         final NeutronBgpvpn result = new NeutronBgpvpn();
index e1bd46b82967c4f39ff64b4d22b38b0f58005b71..ac2ff6bbfad51a4541f35d49081eae24c6d00784 100644 (file)
@@ -35,11 +35,6 @@ public final class NeutronL2gatewayConnectionInterface
         return l2gatewayConnections.getL2gatewayConnection();
     }
 
-    @Override
-    public boolean inUse(String l2gatewayConnectionID) {
-        return !exists(l2gatewayConnectionID);
-    }
-
     @Override
     protected NeutronL2gatewayConnection fromMd(L2gatewayConnection l2gatewayConnection) {
         final NeutronL2gatewayConnection result = new NeutronL2gatewayConnection();
index c0f517d7f7619ad0c7f8c23ed3ba32941372a543..66b6c9f0dc53d3b1a497dd24d7ebd71b9bef97b3 100644 (file)
@@ -40,11 +40,6 @@ public final class NeutronL2gatewayInterface
         return l2gateways.getL2gateway();
     }
 
-    @Override
-    public boolean inUse(String l2gatewayID) {
-        return !exists(l2gatewayID);
-    }
-
     @Override
     protected NeutronL2gateway fromMd(L2gateway l2gateway) {
         final NeutronL2gateway result = new NeutronL2gateway();
index 38bc77dc1623c9621af1cfbcec6e4c0f203edc62..155efb3291c6ca578bd89b97bc7900a0201f94d4 100644 (file)
@@ -38,11 +38,6 @@ public final class NeutronVPNIPSECSiteConnectionsInterface
         return connections.getIpsecsiteconnection();
     }
 
-    @Override
-    public boolean inUse(String policyID) {
-        return !exists(policyID);
-    }
-
     protected NeutronVPNIPSECSiteConnection fromMd(Ipsecsiteconnection ipsecSiteConnection) {
         final NeutronVPNIPSECSiteConnection answer = new NeutronVPNIPSECSiteConnection();
         fromMdAdminAttributes(ipsecSiteConnection, answer);
index de501ed0180237cd392532b7fdf80f9155ccabfc..de97859567955f350711dfdc4510995c1b9937c8 100644 (file)
@@ -33,11 +33,6 @@ public final class NeutronVPNServiceInterface
         return services.getVpnservice();
     }
 
-    @Override
-    public boolean inUse(String uuid) {
-        return !exists(uuid);
-    }
-
     protected NeutronVPNService fromMd(Vpnservice vpnService) {
         final NeutronVPNService answer = new NeutronVPNService();
         fromMdAdminAttributes(vpnService, answer);