In the age of LLMs I would expect that legacy code bet carried indefinitely. The LLMs will have it indefinitely in their training data, and with code "cheap" to produce now, what are the good reasons for dropping legacy code?
The obvious answer is that LLMs are not quite the machine gods they're marketed as, innit.
> what are the good reasons for dropping legacy code?
Reducing attack surface.