Skip to content

Commit a4d6281

Browse files
committed
CodecsModuleBuiltins: remove executeWith methods in favour of the call public api
1 parent fed96fb commit a4d6281

File tree

1 file changed

+0
-32
lines changed

1 file changed

+0
-32
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/CodecsModuleBuiltins.java

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,6 @@
9696
import com.oracle.truffle.api.dsl.GenerateUncached;
9797
import com.oracle.truffle.api.dsl.NodeFactory;
9898
import com.oracle.truffle.api.dsl.Specialization;
99-
import com.oracle.truffle.api.frame.VirtualFrame;
10099
import com.oracle.truffle.api.library.CachedLibrary;
101100
import com.oracle.truffle.api.nodes.Node;
102101
import com.oracle.truffle.api.profiles.ConditionProfile;
@@ -513,25 +512,6 @@ protected ArgumentClinicProvider getArgumentClinic() {
513512
return CodecsModuleBuiltinsClinicProviders.CodecsDecodeNodeClinicProviderGen.INSTANCE;
514513
}
515514

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-
535515
@Specialization
536516
Object decode(PBytesLike input, String encoding, String errors, boolean finalData,
537517
@Cached GetInternalByteArrayNode getBytes,
@@ -586,16 +566,6 @@ private static Errors getErrors(String err) {
586566
}
587567
}
588568

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-
599569
@Override
600570
protected ArgumentClinicProvider getArgumentClinic() {
601571
return CodecsModuleBuiltinsClinicProviders.CodecsEscapeDecodeNodeClinicProviderGen.INSTANCE;
@@ -727,8 +697,6 @@ private static boolean isHexDigit(char digit) {
727697
@ArgumentClinic(name = "errors", conversion = ArgumentClinic.ClinicConversion.String, defaultValue = "\"strict\"", useDefaultForNone = true)
728698
@GenerateNodeFactory
729699
public abstract static class CodecsEscapeEncodeNode extends PythonBinaryClinicBuiltinNode {
730-
public abstract Object execute(Object str, Object errors);
731-
732700
@Override
733701
protected ArgumentClinicProvider getArgumentClinic() {
734702
return CodecsModuleBuiltinsClinicProviders.CodecsEscapeEncodeNodeClinicProviderGen.INSTANCE;

0 commit comments

Comments
 (0)