Remove GenericEntityOwnershipCandidateRegistration
[mdsal.git] / entityownership / mdsal-eos-binding-adapter / src / main / java / org / opendaylight / mdsal / eos / binding / dom / adapter / BindingEntityOwnershipCandidateRegistration.java
diff --git a/entityownership/mdsal-eos-binding-adapter/src/main/java/org/opendaylight/mdsal/eos/binding/dom/adapter/BindingEntityOwnershipCandidateRegistration.java b/entityownership/mdsal-eos-binding-adapter/src/main/java/org/opendaylight/mdsal/eos/binding/dom/adapter/BindingEntityOwnershipCandidateRegistration.java
deleted file mode 100644 (file)
index 319cc63..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/*
- * Copyright (c) 2015 Brocade Communications 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.mdsal.eos.binding.dom.adapter;
-
-import static java.util.Objects.requireNonNull;
-
-import org.opendaylight.mdsal.eos.binding.api.Entity;
-import org.opendaylight.mdsal.eos.binding.api.EntityOwnershipCandidateRegistration;
-import org.opendaylight.mdsal.eos.dom.api.DOMEntityOwnershipCandidateRegistration;
-import org.opendaylight.yangtools.concepts.AbstractObjectRegistration;
-
-/**
- * Implementation of EntityOwnershipCandidateRegistration whose instances are returned from the
- * {@link BindingDOMEntityOwnershipServiceAdapter}.
- *
- * @author Thomas Pantelis
- */
-class BindingEntityOwnershipCandidateRegistration extends AbstractObjectRegistration<Entity>
-           implements EntityOwnershipCandidateRegistration {
-    private final DOMEntityOwnershipCandidateRegistration domRegistration;
-
-    BindingEntityOwnershipCandidateRegistration(DOMEntityOwnershipCandidateRegistration domRegistration,
-            Entity entity) {
-        super(entity);
-        this.domRegistration = requireNonNull(domRegistration);
-    }
-
-    @Override
-    protected void removeRegistration() {
-        domRegistration.close();
-    }
-}
\ No newline at end of file