Remove unused code in GenUtils