|
84 | 84 | import static com.oracle.graal.python.runtime.exception.PythonErrorType.ValueError; |
85 | 85 |
|
86 | 86 | import java.math.BigInteger; |
87 | | -import java.nio.charset.Charset; |
88 | | -import java.nio.charset.CodingErrorAction; |
89 | 87 | import java.nio.charset.StandardCharsets; |
90 | 88 | import java.util.Arrays; |
91 | 89 | import java.util.List; |
@@ -2231,7 +2229,7 @@ Object typeNew(VirtualFrame frame, Object cls, Object wName, PTuple bases, PDict |
2231 | 2229 | } |
2232 | 2230 |
|
2233 | 2231 | @Fallback |
2234 | | - Object generic(Object cls, Object name, Object bases, Object namespace, Object kwds) { |
| 2232 | + Object generic(@SuppressWarnings("unused") Object cls, @SuppressWarnings("unused") Object name, Object bases, Object namespace, @SuppressWarnings("unused") Object kwds) { |
2235 | 2233 | if (!(bases instanceof PTuple)) { |
2236 | 2234 | throw raise(TypeError, ErrorMessages.ARG_D_MUST_BE_S_NOT_P, "type.__new__()", 2, "tuple", bases); |
2237 | 2235 | } else if (namespace == PNone.NO_VALUE) { |
@@ -2698,6 +2696,7 @@ Object doNative(PythonAbstractNativeObject self, Object[] varargs, PKeyword[] kw |
2698 | 2696 | @Builtin(name = "NotImplementedType", minNumOfPositionalArgs = 1, constructsClass = PythonBuiltinClassType.PNotImplemented, isPublic = false) |
2699 | 2697 | @GenerateNodeFactory |
2700 | 2698 | public abstract static class NotImplementedTypeNode extends PythonBuiltinNode { |
| 2699 | + @SuppressWarnings("unused") |
2701 | 2700 | @Specialization |
2702 | 2701 | public PNotImplemented module(Object cls) { |
2703 | 2702 | return PNotImplemented.NOT_IMPLEMENTED; |
|
0 commit comments