3 ms·
> But disallowing unused functions would have been a bridge too far, so we're left with this half-measure and half-reasoning that doesn't even make sense. how
by omegabravo 7y ago
> But disallowing unused functions would have been a bridge too far, so we're left with this half-measure and half-reasoning that doesn't even make sense.
how would you find an unused function?
- kstenerud 7y agoThe same way you detect unused variables: Look for accesses, and if nothing accesses the function, it's unused. Note that I'm talking about non-exported functions (i.e. someFunction rather than SomeFunction).