Remove ClassLoaderUtils.construct()
[yangtools.git] / common / util / src / main / java / org / opendaylight / yangtools / util / ClassLoaderUtils.java
index 232a54ded9c8804e42a106d26fe3246025f674c1..37dd54dc23e9fda09b992d045c1f0165f9db1660 100644 (file)
@@ -13,8 +13,6 @@ import com.google.common.annotations.Beta;
 import com.google.common.base.Joiner;
 import com.google.common.base.Splitter;
 import com.google.common.collect.Iterables;
-import java.lang.reflect.Constructor;
-import java.lang.reflect.InvocationTargetException;
 import java.lang.reflect.ParameterizedType;
 import java.lang.reflect.Type;
 import java.util.List;
@@ -162,13 +160,6 @@ public final class ClassLoaderUtils {
         return callWithClassLoader(cls, function);
     }
 
-    // FIXME: 3.0.0: Remove or improve this to be an explicit cast to a receiver <T>?
-    public static Object construct(final Constructor<?> constructor, final List<Object> objects)
-            throws InstantiationException, IllegalAccessException, InvocationTargetException {
-        final Object[] initargs = objects.toArray();
-        return constructor.newInstance(initargs);
-    }
-
     /**
      * Loads class using this supplied classloader.
      *