Eliminate BindingToNormalizedNodeCodecFactory.getOrCreateInstance() 31/62831/3
authorRobert Varga <robert.varga@pantheon.tech>
Thu, 7 Sep 2017 11:38:23 +0000 (13:38 +0200)
committerTom Pantelis <tompantelis@gmail.com>
Fri, 8 Sep 2017 19:49:07 +0000 (19:49 +0000)
This method is not referenced from anywhere, remove it.

Change-Id: Ied20fdd02491422d958ad262d2d82ee302a2c258
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/impl/BindingToNormalizedNodeCodecFactory.java

index d4f28a2..6652014 100644 (file)
@@ -25,24 +25,6 @@ import org.osgi.framework.ServiceRegistration;
  * @author Thomas Pantelis
  */
 public class BindingToNormalizedNodeCodecFactory {
  * @author Thomas Pantelis
  */
 public class BindingToNormalizedNodeCodecFactory {
-    /**
-     * This method is deprecated in favor of newInstance/registerInstance.
-     *
-     * @param classLoadingStrategy
-     * @param schemaService
-     * @return BindingToNormalizedNodeCodec instance
-     */
-    @Deprecated
-    public static BindingToNormalizedNodeCodec getOrCreateInstance(final ClassLoadingStrategy classLoadingStrategy,
-                            final DOMSchemaService schemaService) {
-        final BindingNormalizedNodeCodecRegistry codecRegistry = new BindingNormalizedNodeCodecRegistry(
-                StreamWriterGenerator.create(SingletonHolder.JAVASSIST));
-        final BindingToNormalizedNodeCodec instance = new BindingToNormalizedNodeCodec(
-                               classLoadingStrategy, codecRegistry, true);
-        schemaService.registerSchemaContextListener(instance);
-        return instance;
-    }
-
     /**
      * Creates a new BindingToNormalizedNodeCodec instance.
      *
     /**
      * Creates a new BindingToNormalizedNodeCodec instance.
      *

©2013 OpenDaylight, A Linux Foundation Collaborative Project. All Rights Reserved.
OpenDaylight is a registered trademark of The OpenDaylight Project, Inc.
Linux Foundation and OpenDaylight are registered trademarks of the Linux Foundation.
Linux is a registered trademark of Linus Torvalds.