clean-up to remove un-used three WebApplicationException subclasses
[neutron.git] / northbound-api / src / main / java / org / opendaylight / neutron / northbound / api / NeutronRoutersNorthbound.java
index 66b68253c378a92b6d07eb92289c0bf7170d5ff4..38510aa53530f38bb582ddf7e4311004c82cb7fd 100644 (file)
@@ -77,9 +77,6 @@ public final class NeutronRoutersNorthbound
     // sorting not supported
     ) {
         INeutronRouterCRUD routerInterface = getNeutronCRUD();
-        if (routerInterface == null) {
-            throw new ServiceUnavailableException(serviceUnavailable());
-        }
         List<NeutronRouter> allRouters = routerInterface.getAll();
         List<NeutronRouter> ans = new ArrayList<>();
         for (NeutronRouter router : allRouters) {