JS: remove unused runtime function

This commit is contained in:
Alexey Andreev 2023-11-13 10:46:06 +01:00
parent 1955973c3b
commit e877cc86e4
2 changed files with 1 additions and 2 deletions

View File

@ -1300,7 +1300,7 @@ public class StatementRenderer implements ExprVisitor, StatementVisitor {
}
writer.append("(");
} else {
writer.appendFunction("$rt_createArrayFromData").append("(");
writer.appendFunction("$rt_wrapArray").append("(");
context.typeToClsString(writer, expr.getType());
writer.append(",").ws();
}

View File

@ -20,7 +20,6 @@ let $rt_createArray = (cls, sz) => {
data.fill(null);
return new ($rt_arraycls(cls))(data);
}
let $rt_createArrayFromData = (cls, init) => $rt_wrapArray(cls, init);
let $rt_wrapArray = (cls, data) => new ($rt_arraycls(cls))(data);
let $rt_createUnfilledArray = (cls, sz) => new ($rt_arraycls(cls))(new teavm_globals.Array(sz));
let $rt_createLongArray;