Remove odl-controller-exp-messagebus
[controller.git] / opendaylight / md-sal / messagebus-impl / src / main / java / org / opendaylight / controller / messagebus / app / impl / EventSourceRegistrationImpl.java
diff --git a/opendaylight/md-sal/messagebus-impl/src/main/java/org/opendaylight/controller/messagebus/app/impl/EventSourceRegistrationImpl.java b/opendaylight/md-sal/messagebus-impl/src/main/java/org/opendaylight/controller/messagebus/app/impl/EventSourceRegistrationImpl.java
deleted file mode 100644 (file)
index 1779ad8..0000000
+++ /dev/null
@@ -1,37 +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.controller.messagebus.app.impl;
-
-import static java.util.Objects.requireNonNull;
-
-import org.opendaylight.controller.messagebus.spi.EventSource;
-import org.opendaylight.controller.messagebus.spi.EventSourceRegistration;
-import org.opendaylight.yangtools.concepts.AbstractObjectRegistration;
-
-@Deprecated(forRemoval = true)
-class EventSourceRegistrationImpl<T extends EventSource> extends AbstractObjectRegistration<T>
-        implements EventSourceRegistration<T> {
-
-    private final EventSourceTopology eventSourceTopology;
-
-    /**
-     * Constructor.
-     *
-     * @param instance of EventSource that has been registered by
-     *     {@link EventSourceRegistryImpl#registerEventSource(Node, EventSource)}
-     */
-    EventSourceRegistrationImpl(final T instance, final EventSourceTopology eventSourceTopology) {
-        super(instance);
-        this.eventSourceTopology = requireNonNull(eventSourceTopology);
-    }
-
-    @Override
-    protected void removeRegistration() {
-        this.eventSourceTopology.unRegister(getInstance());
-    }
-}