Trim Unused Types Not Working
GHYNG opened this issue · 1 comments
GHYNG commented
In the MDK Script Options, I had "Trim Unused Types" clicked.
The source code is:
namespace IngameScript {
partial class Program : MyGridProgram {
public void Main(string args, UpdateType updateType) {
Echo("do something");
}
private void TestA() {
// does nothing
}
}
}
And it generated this:
// with minifier striping comments
public void Main(string args, UpdateType updateType) {
Echo("do something");
}
private void TestA() {
}
or this:
// with minifier full
void Main(string A,UpdateType B){Echo("do something");}void C(){}
While it should not generate the unused function?
malware-dev commented
Note, it says unused _types_ not functions. On Jul 11, 2022 09:04, GHYNG ***@***.***> wrote:
In the MDK Script Options, I had "Trim Unused Types" clicked.
The source code is:
namespace IngameScript {
partial class Program : MyGridProgram {
public void Main(string args, UpdateType updateType) {
Echo("do something");
}
private void TestA() {
// does nothing
}
}
}
And it generated this:
// with minifier striping comments
public void Main(string args, UpdateType updateType) {
Echo("do something");
}
private void TestA() {
}
or this:
// with minifier full
void Main(string A,UpdateType B){Echo("do something");}void C(){}
While it should not generate the unused function?
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: ***@***.***>