|
96 | 96 | import com.oracle.truffle.api.dsl.GenerateUncached;
|
97 | 97 | import com.oracle.truffle.api.dsl.NodeFactory;
|
98 | 98 | import com.oracle.truffle.api.dsl.Specialization;
|
99 |
| -import com.oracle.truffle.api.frame.VirtualFrame; |
100 | 99 | import com.oracle.truffle.api.library.CachedLibrary;
|
101 | 100 | import com.oracle.truffle.api.nodes.Node;
|
102 | 101 | import com.oracle.truffle.api.profiles.ConditionProfile;
|
@@ -513,25 +512,6 @@ protected ArgumentClinicProvider getArgumentClinic() {
|
513 | 512 | return CodecsModuleBuiltinsClinicProviders.CodecsDecodeNodeClinicProviderGen.INSTANCE;
|
514 | 513 | }
|
515 | 514 |
|
516 |
| - public final Object executeWith(VirtualFrame frame, Object data) { |
517 |
| - return executeWith(frame, data, "utf-8"); |
518 |
| - } |
519 |
| - |
520 |
| - public final Object executeWith(VirtualFrame frame, Object data, String encoding) { |
521 |
| - return executeWith(frame, data, encoding, "strict"); |
522 |
| - } |
523 |
| - |
524 |
| - public final Object executeWith(VirtualFrame frame, Object data, String encoding, String errors) { |
525 |
| - return executeWith(frame, data, encoding, errors, false); |
526 |
| - } |
527 |
| - |
528 |
| - public final Object executeWith(VirtualFrame frame, Object data, String encoding, String errors, boolean finalData) { |
529 |
| - return execute(frame, data, encoding, errors, finalData); |
530 |
| - } |
531 |
| - |
532 |
| - @Override |
533 |
| - public abstract Object execute(VirtualFrame frame, Object str, Object encoding, Object errors, Object finalData); |
534 |
| - |
535 | 515 | @Specialization
|
536 | 516 | Object decode(PBytesLike input, String encoding, String errors, boolean finalData,
|
537 | 517 | @Cached GetInternalByteArrayNode getBytes,
|
@@ -586,16 +566,6 @@ private static Errors getErrors(String err) {
|
586 | 566 | }
|
587 | 567 | }
|
588 | 568 |
|
589 |
| - public final Object executeWith(byte[] data) { |
590 |
| - return executeWith(data, "strict"); |
591 |
| - } |
592 |
| - |
593 |
| - public final Object executeWith(byte[] data, String errors) { |
594 |
| - return execute(data, errors); |
595 |
| - } |
596 |
| - |
597 |
| - public abstract Object execute(Object str, Object errors); |
598 |
| - |
599 | 569 | @Override
|
600 | 570 | protected ArgumentClinicProvider getArgumentClinic() {
|
601 | 571 | return CodecsModuleBuiltinsClinicProviders.CodecsEscapeDecodeNodeClinicProviderGen.INSTANCE;
|
@@ -727,8 +697,6 @@ private static boolean isHexDigit(char digit) {
|
727 | 697 | @ArgumentClinic(name = "errors", conversion = ArgumentClinic.ClinicConversion.String, defaultValue = "\"strict\"", useDefaultForNone = true)
|
728 | 698 | @GenerateNodeFactory
|
729 | 699 | public abstract static class CodecsEscapeEncodeNode extends PythonBinaryClinicBuiltinNode {
|
730 |
| - public abstract Object execute(Object str, Object errors); |
731 |
| - |
732 | 700 | @Override
|
733 | 701 | protected ArgumentClinicProvider getArgumentClinic() {
|
734 | 702 | return CodecsModuleBuiltinsClinicProviders.CodecsEscapeEncodeNodeClinicProviderGen.INSTANCE;
|
|
0 commit comments