PapyrusDotNet icon indicating copy to clipboard operation
PapyrusDotNet copied to clipboard

[Clr2Papyrus] Remove all unused local variables

Open zerratar opened this issue 9 years ago • 0 comments

When using delegates, a new Int v_n variable will be added for each delegates used. These local variables are never used, assigned nor accessed, which should make them safe to be removed.

Instead of just removing these variables directly as the converter already knows that these variables are delegate vars. I want to have a post processing step where all methods are optimized; regardless if delegates are being used or not and remove all unused variables.

This is not a bug and it does not break the usage of Clr2Papyrus, it is just completely unecessary to keep them.

zerratar avatar Dec 26 '15 09:12 zerratar