From: Robert Varga Date: Sat, 26 Nov 2022 11:59:17 +0000 (+0100) Subject: Remove unused ShardManagerSnapshot X-Git-Tag: v7.0.0~40 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=5c7a55de95898702ba080b0f737c25072119c47e Remove unused ShardManagerSnapshot This class has been migrated to persisted package. Remove it. Change-Id: Ie5390eb1679f4ffc74d7d6a8cccf45f1f273105a Signed-off-by: Robert Varga --- diff --git a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManagerSnapshot.java b/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManagerSnapshot.java deleted file mode 100644 index b990779805..0000000000 --- a/opendaylight/md-sal/sal-distributed-datastore/src/main/java/org/opendaylight/controller/cluster/datastore/shardmanager/ShardManagerSnapshot.java +++ /dev/null @@ -1,39 +0,0 @@ -/* - * Copyright (c) 2015 Dell 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.cluster.datastore.shardmanager; - -import com.google.common.collect.ImmutableList; -import java.io.Serializable; -import java.util.List; -import org.eclipse.jdt.annotation.NonNull; - -/** - * Persisted data of the ShardManager. - * - * @deprecated Use {@link org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot} instead. - */ -// FIXME: 5.0.0: remove this class -@Deprecated(forRemoval = true) -final class ShardManagerSnapshot implements Serializable { - private static final long serialVersionUID = 1L; - - private final List shardList; - - ShardManagerSnapshot(final @NonNull List shardList) { - this.shardList = ImmutableList.copyOf(shardList); - } - - private Object readResolve() { - return new org.opendaylight.controller.cluster.datastore.persisted.ShardManagerSnapshot(shardList); - } - - @Override - public String toString() { - return "ShardManagerSnapshot [ShardList = " + shardList + " ]"; - } -}