Cosmetic changes by hlint.
Remove unused funcs.
Cleanup codes in CodeGen/.