Removal of migrated or obsolute artifacts.
[yangtools.git] / yang / yang-binding / src / main / java / org / opendaylight / yangtools / yang / binding / util / RpcMethodInvokerWithoutInput.java
diff --git a/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/RpcMethodInvokerWithoutInput.java b/yang/yang-binding/src/main/java/org/opendaylight/yangtools/yang/binding/util/RpcMethodInvokerWithoutInput.java
deleted file mode 100644 (file)
index 740b98f..0000000
+++ /dev/null
@@ -1,36 +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.yang.binding.util;
-
-import com.google.common.base.Throwables;
-import java.lang.invoke.MethodHandle;
-import java.lang.invoke.MethodType;
-import java.util.concurrent.Future;
-import org.opendaylight.yangtools.yang.binding.DataObject;
-import org.opendaylight.yangtools.yang.binding.RpcService;
-import org.opendaylight.yangtools.yang.common.RpcResult;
-
-class RpcMethodInvokerWithoutInput extends RpcMethodInvoker {
-
-    private static final MethodType INVOCATION_SIGNATURE = MethodType.methodType(Future.class, RpcService.class);
-    private final MethodHandle handle;
-
-    RpcMethodInvokerWithoutInput(MethodHandle methodHandle) {
-        this.handle = methodHandle.asType(INVOCATION_SIGNATURE);
-    }
-
-    @Override
-    public Future<RpcResult<?>> invokeOn(RpcService impl, DataObject input) {
-        try {
-            return (Future<RpcResult<?>>) handle.invokeExact(impl);
-        } catch (Throwable e) {
-            throw Throwables.propagate(e);
-        }
-    }
-
-}
\ No newline at end of file