Skip to content

Commit e74cc03

Browse files
committed
Removed buffer-like messages from String
1 parent 2e9f455 commit e74cc03

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/objects/object/DefaultPythonStringExports.java

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -84,22 +84,6 @@ static Object getLazyPythonClass(@SuppressWarnings("unused") String value) {
8484
return PythonBuiltinClassType.PString;
8585
}
8686

87-
@ExportMessage
88-
static boolean isBuffer(@SuppressWarnings("unused") String str) {
89-
return false;
90-
}
91-
92-
@ExportMessage
93-
static int getBufferLength(@SuppressWarnings("unused") String str) {
94-
return getBufferBytes(str).length;
95-
}
96-
97-
@ExportMessage
98-
@TruffleBoundary
99-
static byte[] getBufferBytes(String str) {
100-
return str.getBytes();
101-
}
102-
10387
@ExportMessage
10488
@TruffleBoundary
10589
static long hashWithState(String self, @SuppressWarnings("unused") ThreadState state) {

0 commit comments

Comments
 (0)