Remove deprecated MD-SAL APIs
[controller.git] / opendaylight / md-sal / sal-binding-broker / src / main / java / org / opendaylight / controller / md / sal / binding / compat / AbstractNotificationListenerRegistration.java
diff --git a/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AbstractNotificationListenerRegistration.java b/opendaylight/md-sal/sal-binding-broker/src/main/java/org/opendaylight/controller/md/sal/binding/compat/AbstractNotificationListenerRegistration.java
deleted file mode 100644 (file)
index 1cfe9c4..0000000
+++ /dev/null
@@ -1,44 +0,0 @@
-/*
- * Copyright (c) 2014 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.controller.md.sal.binding.compat;
-
-import static java.util.Objects.requireNonNull;
-
-import org.opendaylight.controller.sal.binding.api.NotificationListener;
-import org.opendaylight.yangtools.concepts.AbstractListenerRegistration;
-import org.opendaylight.yangtools.yang.binding.Notification;
-
-/**
- * Abstract implementation of {@link NotificationListenerRegistration}.
- *
- * @param <T> Notification type
- */
-@Deprecated(forRemoval = true)
-abstract class AbstractNotificationListenerRegistration<T extends Notification>
-        extends AbstractListenerRegistration<NotificationListener<T>> implements NotificationListenerRegistration<T> {
-    private final Class<? extends Notification> type;
-
-    protected AbstractNotificationListenerRegistration(final Class<? extends Notification> type,
-            final NotificationListener<T> listener) {
-        super(listener);
-        this.type = requireNonNull(type);
-    }
-
-    @Override
-    public Class<? extends Notification> getType() {
-        return type;
-    }
-
-    @Override
-    @SuppressWarnings("unchecked")
-    public void notify(final Notification notification) {
-        if (!isClosed()) {
-            getInstance().onNotification((T)notification);
-        }
-    }
-}