title: How to force ProGuard to remove public static method?
body: <p>I have multiple classes in my application that provide <code>public static void main(String[] args)</code> methods. These methods are only required during development / testing, and I'd like ProGuard to remove them (but only these methods, not the entire surrounding classes). I've tried to use <code>-assumenosideeffects</code>, but that only seems to affect calls to methods, not the methods themselves. How can I force Proguard to remove the entire <code>main()</code> methods despite them being <code>public</code> and <code>static</code>?</p>