Remove useless code
Fix typo
Remove unused function