Skip to content

Commit 4641a10

Browse files
committed
remove unnecessary throws declaration
1 parent 0070a32 commit 4641a10

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/call/special/CallVarargsMethodNode.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -72,23 +72,23 @@ Object call(VirtualFrame frame, @SuppressWarnings("unused") PBuiltinFunction fun
7272
"builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()", assumptions = "singleContextAssumption()")
7373
Object callUnary(@SuppressWarnings("unused") PBuiltinFunction func, Object[] arguments, @SuppressWarnings("unused") PKeyword[] keywords,
7474
@Cached("func") @SuppressWarnings("unused") PBuiltinFunction cachedFunc,
75-
@Cached("getUnary(func)") PythonUnaryBuiltinNode builtinNode) throws VarargsBuiltinDirectInvocationNotSupported {
75+
@Cached("getUnary(func)") PythonUnaryBuiltinNode builtinNode) {
7676
return builtinNode.execute(arguments[0]);
7777
}
7878

7979
@Specialization(guards = {"arguments.length == 2", "keywords.length == 0", "func == cachedFunc",
8080
"builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()", assumptions = "singleContextAssumption()")
8181
Object callBinary(@SuppressWarnings("unused") PBuiltinFunction func, Object[] arguments, @SuppressWarnings("unused") PKeyword[] keywords,
8282
@Cached("func") @SuppressWarnings("unused") PBuiltinFunction cachedFunc,
83-
@Cached("getBinary(func)") PythonBinaryBuiltinNode builtinNode) throws VarargsBuiltinDirectInvocationNotSupported {
83+
@Cached("getBinary(func)") PythonBinaryBuiltinNode builtinNode) {
8484
return builtinNode.execute(arguments[0], arguments[1]);
8585
}
8686

8787
@Specialization(guards = {"arguments.length == 3", "keywords.length == 0", "func == cachedFunc",
8888
"builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()", assumptions = "singleContextAssumption()")
8989
Object callTernary(@SuppressWarnings("unused") PBuiltinFunction func, Object[] arguments, @SuppressWarnings("unused") PKeyword[] keywords,
9090
@Cached("func") @SuppressWarnings("unused") PBuiltinFunction cachedFunc,
91-
@Cached("getTernary(func)") PythonTernaryBuiltinNode builtinNode) throws VarargsBuiltinDirectInvocationNotSupported {
91+
@Cached("getTernary(func)") PythonTernaryBuiltinNode builtinNode) {
9292
return builtinNode.execute(arguments[0], arguments[1], arguments[2]);
9393
}
9494

@@ -102,21 +102,21 @@ Object call(VirtualFrame frame, @SuppressWarnings("unused") PBuiltinFunction fun
102102
@Specialization(guards = {"arguments.length == 1", "keywords.length == 0", "func.getCallTarget() == ct", "builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()")
103103
Object callUnary(@SuppressWarnings("unused") PBuiltinFunction func, Object[] arguments, @SuppressWarnings("unused") PKeyword[] keywords,
104104
@SuppressWarnings("unused") @Cached("func.getCallTarget()") RootCallTarget ct,
105-
@Cached("getUnary(func)") PythonUnaryBuiltinNode builtinNode) throws VarargsBuiltinDirectInvocationNotSupported {
105+
@Cached("getUnary(func)") PythonUnaryBuiltinNode builtinNode) {
106106
return builtinNode.execute(arguments[0]);
107107
}
108108

109109
@Specialization(guards = {"arguments.length == 2", "keywords.length == 0", "func.getCallTarget() == ct", "builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()")
110110
Object callBinary(@SuppressWarnings("unused") PBuiltinFunction func, Object[] arguments, @SuppressWarnings("unused") PKeyword[] keywords,
111111
@SuppressWarnings("unused") @Cached("func.getCallTarget()") RootCallTarget ct,
112-
@Cached("getBinary(func)") PythonBinaryBuiltinNode builtinNode) throws VarargsBuiltinDirectInvocationNotSupported {
112+
@Cached("getBinary(func)") PythonBinaryBuiltinNode builtinNode) {
113113
return builtinNode.execute(arguments[0], arguments[1]);
114114
}
115115

116116
@Specialization(guards = {"arguments.length == 3", "keywords.length == 0", "func.getCallTarget() == ct", "builtinNode != null"}, limit = "getCallSiteInlineCacheMaxDepth()")
117117
Object callTernary(@SuppressWarnings("unused") PBuiltinFunction func, Object[] arguments, @SuppressWarnings("unused") PKeyword[] keywords,
118118
@SuppressWarnings("unused") @Cached("func.getCallTarget()") RootCallTarget ct,
119-
@Cached("getTernary(func)") PythonTernaryBuiltinNode builtinNode) throws VarargsBuiltinDirectInvocationNotSupported {
119+
@Cached("getTernary(func)") PythonTernaryBuiltinNode builtinNode) {
120120
return builtinNode.execute(arguments[0], arguments[1], arguments[2]);
121121
}
122122

0 commit comments

Comments
 (0)