Old display.remove code in main.lua question...

Thanks for clarifying this!

also, aside, fwiw (just as a lesson, back to your original Q about should you keep that found code)

see that line “o = nil” in your original post?

that line does _ absolutely nothing _ - “o” is a local and will cease to exist all by itself once the function exits.

the presence of any such nonsense/do-nothing code should be a HUGE red flag before adopting any found code.

(i have my suspicions about what the original author might have THOUGHT that code did, but they’d be very very wrong if so)

dang! i was too quick and didnt catch that the event in question was a runtime event.

naturally it doesnt vanish by it self since you dont delete the “runtime” object the listener is attached to.

for other types of listeners like “touch”, and “tap” that are are attached to display objects, they should get removed with the objects.

my bad  -_-