2 ms·
The easy case is when you can statically determine that a function has no callers and can therefore safely delete it. So it seems like risk comes from usage, or
by skybrian 1y ago
The easy case is when you can statically determine that a function has no callers and can therefore safely delete it. So it seems like risk comes from usage, or uncertainty about usage.
- al_borland 1y agoJust last week I was cleaning things up an Ansible repo and found a role to manage a dead product which wasn't called anywhere. However, the role contained a vars file that set a half dozen variables. Someone included that single file from the role somewhere else to set one or two variables they needed for something else that was largely unrelated. In theory, we should have been able to delete that role without much thought, but without any extra layer of validation and some code updates, it still would have broken things. The uncertainty is where most of the risk lies, especially when some people do odd things like this.