remove unused methods 02/41602/1
authorIsaku Yamahata <isaku.yamahata@intel.com>
Sat, 9 Jul 2016 01:27:34 +0000 (18:27 -0700)
committerIsaku Yamahata <isaku.yamahata@intel.com>
Sat, 9 Jul 2016 01:28:02 +0000 (18:28 -0700)
Change-Id: Ib7259505f4e289a7a356879a8fa2f87f224c460a
Signed-off-by: Isaku Yamahata <isaku.yamahata@intel.com>
northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronUtil.java [deleted file]

diff --git a/northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronUtil.java b/northbound-api/src/main/java/org/opendaylight/neutron/northbound/api/NeutronUtil.java
deleted file mode 100644 (file)
index a80038f..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (c) 2015 Cisco Systems, Inc. and others.  All rights reserved.
- *
- * This program and the accompanying materials are made available under the
- * terms of the Eclipse Public License v1.0 which accompanies this distribution,
- * and is available at http://www.eclipse.org/legal/epl-v10.html
- */
-
-package org.opendaylight.neutron.northbound.api;
-
-import org.osgi.framework.BundleContext;
-import org.osgi.framework.FrameworkUtil;
-import org.osgi.framework.ServiceReference;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-public final class NeutronUtil {
-    private static final Logger LOGGER = LoggerFactory
-            .getLogger(NeutronUtil.class);
-
-    private NeutronUtil() {
-    }
-
-    public static Object[] getInstances(Class<?> clazz,Object bundle) {
-        Object instances[] = null;
-        try {
-            BundleContext bCtx = FrameworkUtil.getBundle(bundle.getClass())
-                    .getBundleContext();
-
-            ServiceReference<?>[] services = null;
-                services = bCtx.getServiceReferences(clazz.getName(),
-                        null);
-            if (services != null) {
-                instances = new Object[services.length];
-                for (int i = 0; i < services.length; i++) {
-                    instances[i] = bCtx.getService(services[i]);
-                }
-            }
-        } catch (Exception e) {
-            LOGGER.error("Instance reference is NULL", e);
-        }
-        return instances;
-    }
-}