mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2025-01-08 07:54:11 -08:00
JS: remove unused runtime function
This commit is contained in:
parent
1955973c3b
commit
e877cc86e4
|
@ -1300,7 +1300,7 @@ public class StatementRenderer implements ExprVisitor, StatementVisitor {
|
||||||
}
|
}
|
||||||
writer.append("(");
|
writer.append("(");
|
||||||
} else {
|
} else {
|
||||||
writer.appendFunction("$rt_createArrayFromData").append("(");
|
writer.appendFunction("$rt_wrapArray").append("(");
|
||||||
context.typeToClsString(writer, expr.getType());
|
context.typeToClsString(writer, expr.getType());
|
||||||
writer.append(",").ws();
|
writer.append(",").ws();
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,7 +20,6 @@ let $rt_createArray = (cls, sz) => {
|
||||||
data.fill(null);
|
data.fill(null);
|
||||||
return new ($rt_arraycls(cls))(data);
|
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_wrapArray = (cls, data) => new ($rt_arraycls(cls))(data);
|
||||||
let $rt_createUnfilledArray = (cls, sz) => new ($rt_arraycls(cls))(new teavm_globals.Array(sz));
|
let $rt_createUnfilledArray = (cls, sz) => new ($rt_arraycls(cls))(new teavm_globals.Array(sz));
|
||||||
let $rt_createLongArray;
|
let $rt_createLongArray;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user