Skip to content

Commit 3d714cb

Browse files
committed
Removing unreachable specialization in PRaiseNode.
1 parent 10a1f69 commit 3d714cb

File tree

1 file changed

+0
-8
lines changed
  • graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes

1 file changed

+0
-8
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/nodes/PRaiseNode.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -198,14 +198,6 @@ static PException doPythonBuiltinClass(Node raisingNode, PythonBuiltinClass exce
198198
throw raiseExceptionObject(raisingNode, factory.createBaseException(exceptionType), language);
199199
}
200200

201-
@Specialization(guards = {"isNoValue(cause)"})
202-
static PException doBuiltinClass(Node raisingNode, PythonBuiltinClass exceptionType, @SuppressWarnings("unused") PNone cause, String format, Object[] arguments,
203-
@Shared("factory") @Cached PythonObjectFactory factory,
204-
@Shared("language") @CachedLanguage PythonLanguage language) {
205-
assert format != null;
206-
throw doBuiltinType(raisingNode, exceptionType.getType(), cause, format, arguments, factory, language);
207-
}
208-
209201
@Specialization(guards = {"isNoValue(cause)", "isNoValue(format)", "arguments.length == 0"})
210202
static PException doPythonManagedClass(Node raisingNode, PythonManagedClass exceptionType, @SuppressWarnings("unused") PNone cause, @SuppressWarnings("unused") PNone format,
211203
@SuppressWarnings("unused") Object[] arguments,

0 commit comments

Comments
 (0)