There is an open source tool called Mirth Migrator that indicates which channels and also which other code templates are using a function defined in a code template.
You can find it on GitHub