You know those people who keep everything forever, even things that they know they don’t need, things that may or may not even work, just because it might come in handy later? In the real world, those people called hoarders. Sometimes it’s considered a pathology, which requires specific intervention by trained mental health experts.
You know those people who never delete their code, even code that they know they don’t need, things that may or may not even work, just because it might come in handy later? Maybe they mark what they are hoarding with a comment like “This isn’t used anymore” or even the more ambitious “todo: remove altogether?”. Maybe they just comment out huge sections of code.
This is pathological. If you’re using any form of source control, just clean up the damn garage. If you’re not using source control, then now you have a good reason to start.