Eliminate NormalizedNodePayload
[netconf.git] / restconf / restconf-nb / src / main / java / org / opendaylight / restconf / nb / rfc8040 / legacy / WriterParameters.java
diff --git a/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/legacy/WriterParameters.java b/restconf/restconf-nb/src/main/java/org/opendaylight/restconf/nb/rfc8040/legacy/WriterParameters.java
deleted file mode 100644 (file)
index 3e8a8b7..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
- * Copyright (c) 2021 PANTHEON.tech, 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.restconf.nb.rfc8040.legacy;
-
-import com.google.common.annotations.Beta;
-import java.util.List;
-import java.util.Set;
-import org.eclipse.jdt.annotation.NonNull;
-import org.eclipse.jdt.annotation.Nullable;
-import org.opendaylight.restconf.api.query.DepthParam;
-import org.opendaylight.yangtools.yang.common.QName;
-
-/**
- * This holds various options acquired from a requests's query part. This class needs to be further split up to make
- * sense of it, as parts of it pertain to how a {@link NormalizedNodePayload} should be created while others how it
- * needs to be processed (for example filtered).
- */
-@Beta
-public record WriterParameters(@Nullable DepthParam depth, @Nullable List<Set<QName>> fields) {
-    public static final @NonNull WriterParameters EMPTY = new WriterParameters(null, null);
-
-    public static @NonNull WriterParameters of(final @Nullable DepthParam depth) {
-        return depth == null ? EMPTY : new WriterParameters(depth, null);
-    }
-}