From 0ebfdbfd975f1bce3f37d73122ee0de18e92906f Mon Sep 17 00:00:00 2001 From: Robert Varga Date: Fri, 15 Jan 2016 21:57:57 +0100 Subject: [PATCH] Remove deprecated concepts These concepts are unused, remove them. Change-Id: I3501427445c7a30bbc6ce78c904545be9cacef23 Signed-off-by: Robert Varga --- .../concepts/InvertibleTransformator.java | 18 ------------- .../yangtools/concepts/Namespace.java | 25 ------------------- .../yangtools/concepts/OrderedSet.java | 23 ----------------- .../yangtools/concepts/Transformator.java | 17 ------------- 4 files changed, 83 deletions(-) delete mode 100644 common/concepts/src/main/java/org/opendaylight/yangtools/concepts/InvertibleTransformator.java delete mode 100644 common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Namespace.java delete mode 100644 common/concepts/src/main/java/org/opendaylight/yangtools/concepts/OrderedSet.java delete mode 100644 common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Transformator.java diff --git a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/InvertibleTransformator.java b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/InvertibleTransformator.java deleted file mode 100644 index ae02ef2973..0000000000 --- a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/InvertibleTransformator.java +++ /dev/null @@ -1,18 +0,0 @@ -/* - * Copyright (c) 2013 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.yangtools.concepts; - -/** - * @deprecated Unused undocumented concept, scheduled for removal. Users should migrate to Guava's Converter. - */ -@Deprecated -public interface InvertibleTransformator extends Transformator { - - I fromProduct(P product); - -} diff --git a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Namespace.java b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Namespace.java deleted file mode 100644 index 11be515970..0000000000 --- a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Namespace.java +++ /dev/null @@ -1,25 +0,0 @@ -/* - * Copyright (c) 2013 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.yangtools.concepts; - -import java.util.Set; - -/** - * @deprecated Unused undocumented concept. Scheduled for removal. - */ -@Deprecated -public interface Namespace { - - V get(K key); - - Namespace getParent(); - - Set> getSubnamespaces(); - - Namespace getSubnamespace(V key); -} diff --git a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/OrderedSet.java b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/OrderedSet.java deleted file mode 100644 index adf3d8f9fa..0000000000 --- a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/OrderedSet.java +++ /dev/null @@ -1,23 +0,0 @@ -/* - * Copyright (c) 2013 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.yangtools.concepts; - -import java.util.List; -import java.util.Set; - -/** - * @deprecated There is no way an object can satisfy both the {@link Set} and {@link List} interface contracts, as - * they contradict on hashCode() specification. See {@link Set#hashCode()} and {@link List#hashCode()}. - * This class interface will be removed in a future release. - * - * @param Element type - */ -@Deprecated -public interface OrderedSet extends Set, List { - -} diff --git a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Transformator.java b/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Transformator.java deleted file mode 100644 index b906e368a6..0000000000 --- a/common/concepts/src/main/java/org/opendaylight/yangtools/concepts/Transformator.java +++ /dev/null @@ -1,17 +0,0 @@ -/* - * Copyright (c) 2013 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.yangtools.concepts; - -/** - * @deprecated Unused undocumented concept, scheduled for removal. Users should use Guava's Function interface. - */ -@Deprecated -public interface Transformator { - - P transform(I input); -} -- 2.36.6