Remove ForwardingEffectiveStatement 31/95431/1
authorRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Mar 2021 15:27:33 +0000 (16:27 +0100)
committerRobert Varga <robert.varga@pantheon.tech>
Tue, 9 Mar 2021 15:28:13 +0000 (16:28 +0100)
This class is not used anywhere, remove it to simplify API.

Change-Id: I9ee0308e7e29bef2be4fbae6e55703f63d0a6d70
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/ForwardingEffectiveStatement.java [deleted file]

diff --git a/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/ForwardingEffectiveStatement.java b/yang/yang-model-api/src/main/java/org/opendaylight/yangtools/yang/model/api/meta/ForwardingEffectiveStatement.java
deleted file mode 100644 (file)
index e4ce07f..0000000
+++ /dev/null
@@ -1,69 +0,0 @@
-/*
- * Copyright (c) 2017 Pantheon Technologies, s.r.o. 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.yangtools.yang.model.api.meta;
-
-import com.google.common.annotations.Beta;
-import com.google.common.collect.ForwardingObject;
-import java.util.Collection;
-import java.util.Map;
-import java.util.Optional;
-
-/**
- * Utility forwarding implementation of {@link EffectiveStatement} contract. This class is useful for implementing
- * wrapped statements.
- *
- * @author Robert Varga
- *
- * @param <A> Argument type
- * @param <D> Declared Statement representation
- * @param <E> Effective Statement representation
- */
-@Beta
-public abstract class ForwardingEffectiveStatement<A, D extends DeclaredStatement<A>,
-        E extends EffectiveStatement<A, D>> extends ForwardingObject implements EffectiveStatement<A, D> {
-
-    @Override
-    protected abstract E delegate();
-
-
-    @Override
-    public D getDeclared() {
-        return delegate().getDeclared();
-    }
-
-    @Override
-    public <K, V, N extends IdentifierNamespace<K, V>> Optional<? extends V> get(final Class<N> namespace,
-            final K identifier) {
-        return delegate().get(namespace, identifier);
-    }
-
-    @Override
-    public <K, V, N extends IdentifierNamespace<K, V>> Map<K, V> getAll(final Class<N> namespace) {
-        return delegate().getAll(namespace);
-    }
-
-    @Override
-    public Collection<? extends EffectiveStatement<?, ?>> effectiveSubstatements() {
-        return delegate().effectiveSubstatements();
-    }
-
-    @Override
-    public StatementDefinition statementDefinition() {
-        return delegate().statementDefinition();
-    }
-
-    @Override
-    public A argument() {
-        return delegate().argument();
-    }
-
-    @Override
-    public StatementSource getStatementSource() {
-        return delegate().getStatementSource();
-    }
-}