Remove AbstractVoidService 45/110145/2
authorRobert Varga <robert.varga@pantheon.tech>
Mon, 5 Feb 2024 12:54:29 +0000 (13:54 +0100)
committerRobert Varga <nite@hq.sk>
Mon, 5 Feb 2024 15:31:00 +0000 (15:31 +0000)
RPCs have not been producing Void for a long time, remove
AbstractVoidService, as it has only be useful in that context.

Change-Id: I09194eaff79767df9c291fe2639761cb45f4339f
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/AbstractVoidService.java [deleted file]

diff --git a/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/AbstractVoidService.java b/openflowplugin-impl/src/main/java/org/opendaylight/openflowplugin/impl/services/AbstractVoidService.java
deleted file mode 100644 (file)
index 4eb14a5..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-/*
- * Copyright (c) 2015 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.openflowplugin.impl.services;
-
-import com.google.common.util.concurrent.FutureCallback;
-import org.opendaylight.openflowplugin.api.openflow.device.DeviceContext;
-import org.opendaylight.openflowplugin.api.openflow.device.RequestContext;
-import org.opendaylight.openflowplugin.api.openflow.device.RequestContextStack;
-import org.opendaylight.yang.gen.v1.urn.opendaylight.openflow.protocol.rev130731.OfHeader;
-
-public abstract class AbstractVoidService<T> extends AbstractService<T, Void> {
-    protected AbstractVoidService(final RequestContextStack requestContextStack, final DeviceContext deviceContext) {
-        super(requestContextStack, deviceContext);
-    }
-
-    @Override
-    protected final FutureCallback<OfHeader> createCallback(final RequestContext<Void> context,
-                                                            final Class<?> requestType) {
-        return new VoidRequestCallback(context, requestType, getMessageSpy());
-    }
-}