We did the same sort of thing in the pkzip source code 20 years ago. There were a number of pointless routines in the program that would be clear evidence of code theft.
These days I suppose an optimizing compiler would be smart enough to strip away any truly dead ends.