From f18628ec3882a07420e74016c8ebf06557e6e49b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Wa=C5=9Bko?= Date: Thu, 11 Aug 2022 13:43:28 +0200 Subject: [PATCH] Remove ability to modify the array Array.copy still seems to work though --- .../org/enso/interpreter/runtime/data/Array.java | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/engine/runtime/src/main/java/org/enso/interpreter/runtime/data/Array.java b/engine/runtime/src/main/java/org/enso/interpreter/runtime/data/Array.java index bc5b0420839cb..530280eba7d4b 100644 --- a/engine/runtime/src/main/java/org/enso/interpreter/runtime/data/Array.java +++ b/engine/runtime/src/main/java/org/enso/interpreter/runtime/data/Array.java @@ -8,7 +8,6 @@ import com.oracle.truffle.api.interop.TruffleObject; import com.oracle.truffle.api.library.ExportLibrary; import com.oracle.truffle.api.library.ExportMessage; -import org.enso.interpreter.dsl.AcceptsError; import org.enso.interpreter.dsl.Builtin; import org.enso.interpreter.node.expression.builtin.error.InvalidArrayIndexError; import org.enso.interpreter.runtime.Context; @@ -122,21 +121,6 @@ boolean isArrayElementReadable(long index) { return index < getArraySize() && index >= 0; } - @ExportMessage - void writeArrayElement(long index, Object value) { - items[(int) index] = value; - } - - @ExportMessage - boolean isArrayElementModifiable(long index) { - return isArrayElementReadable(index); - } - - @ExportMessage - boolean isArrayElementInsertable(long index) { - return false; - } - @ExportMessage String toDisplayString(boolean b) { return toString();