malware-dev/MDK-SE

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?