"Remove unused variables" leds to errors in project after removing USED variables

Hey @pere ,

There is a bug in remove unused variable option
You are right it sometimes deleted the used variable too.
Please refer below thread for more information

Hope it helps you out!