Fix build error for linux.
Remove unnecessary code.