[SOLVED] How to find and remove unused variables

I’m trying to clean up/refactor a game I started but haven’t touched in years. As I go through the various event sheets, I’m finding better ways to do things. Where I previously used a variable, I’m now using something else.

So I’m wondering if there’s a way of finding variables that have been defined either globally, in the scene, or for an object, and that aren’t being used/referenced anywhere else?

I just don’t want to be left with a bunch of variables defined in places but then not actually used anywhere…

It really doesn’t matter :person_shrugging:
To answer, no, there’s no automatic way of finding unused variables, you’d have to search for them.

Thanks, I had the same thought. I’ll just grep my project directory then :smiling_face: