core: Remove no longer used function templateFileExtensionNew

This function was introduced in commit 54c36cb, but the code that used it was
removed in commit 9357800.