AlexeyDmitriev / JHelper

GNU Lesser General Public License v3.0
119 stars 31 forks source link

Clean unused defines #104

Closed emli closed 4 years ago

emli commented 5 years ago

I wonder can jhelper can do it. For example I many defines. Sometimes I use them and sometimes I am not. Let me know if it possible

AlexeyDmitriev commented 5 years ago

There's an option to remove unused code (check the settings) but it doesn't work very well (sometimes removing used code) because of how finding usages works (so I don't use it). I've never tested it with defines, it may work with them.

What I do is I split my code to smallish files so that amount of unused code is limited. I don't think I actually run into source limit since the time I use JHelper, so I don't care much about removing unused code

emli commented 5 years ago

Tested it removes used code