Fix the compile issue.
Remove redundant code.