Remove unused getExtension function

Left over from gulp-preprocess, which was used as boilerplate for this